librepfunc: fix cross compile

This commit is contained in:
Rudi Heitbaum 2023-11-12 14:17:09 +00:00
parent 77544e0158
commit 6549a05a06

View File

@ -0,0 +1,20 @@
--- a/Makefile 2023-11-12 14:10:50.207821109 +0000
+++ b/Makefile 2023-11-12 14:14:02.385846184 +0000
@@ -32,7 +32,7 @@
#/******************************************************************************
# * if you prefer verbose non-coloured build messages, remove the '@' here:
# *****************************************************************************/
-CXX = @g++
+CXX ?= @g++
CXXFLAGS += -g -O3 -fPIC -Wall -Wextra -Werror=overloaded-virtual -Wfatal-errors
CXXFLAGS += -DVERSION=\"$(VERSION)\"
DEFINES = -D_POSIX_C_SOURCE
@@ -61,7 +61,7 @@
#/******************************************************************************
# * programs, override if on different paths.
# *****************************************************************************/
-AR = @ar
+AR ?= @ar
CD ?= cd
CP ?= cp
CHMOD ?= chmod