[PATCH] Respect users CFLAGS / CXXFLAGS

Post new patches here!
Post Reply
ConiKost
Posts: 1
Joined: Sat 21 Sep, 2019 3:40 pm

[PATCH] Respect users CFLAGS / CXXFLAGS

Post by ConiKost » Sun 29 Sep, 2019 1:19 pm

PCems makefile hard codes CFLAGS/CXXFLAGS to "-O3". It should be possible to override this with own variables.

Code: Select all

--- a/configure.ac	2019-05-19 18:40:05.000000000 +0200
+++ b/configure.ac	2019-09-21 17:34:53.499993726 +0200
@@ -31,8 +31,8 @@
    CXXFLAGS="-Wall -O0 -g -D_DEBUG"
    AC_MSG_RESULT([yes])
 else
-   CFLAGS="-O3"
-   CXXFLAGS="-O3"
+   CFLAGS?="-O3"
+   CXXFLAGS?="-O3"
    AC_MSG_RESULT([no])
 fi

Post Reply