home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2daddf
)
Drop gcc-specific compiler flags when gcc used is just non-GNU gcc mask.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 9 Mar 2015 16:15:35 +0000
(17:15 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 9 Mar 2015 16:15:35 +0000
(17:15 +0100)
build/compiler_flags
patch
|
blob
|
history
diff --git
a/build/compiler_flags
b/build/compiler_flags
index 198da870d53130604998cdd8768dea0f65e7f89a..bc4ea28ab2e213c0218b77ed9a05a42e249847ba 100644
(file)
--- a/
build/compiler_flags
+++ b/
build/compiler_flags
@@
-2,4
+2,12
@@
# or any later version. For details on its copyright, license, and warranties,
# see the file NOTICE in the root directory of the PlomRogue source package.
# or any later version. For details on its copyright, license, and warranties,
# see the file NOTICE in the root directory of the PlomRogue source package.
-CFLAGS='-std=c11 -pedantic-errors -Wall -Werror -Wextra -Wformat-security -O3'
+OFLAG='-O3'
+CFLAGS="-std=c11 -pedantic-errors -Wall -Werror -Wextra -Wformat-security $OFLAG"
+
+# For non-GNU gcc masks, drop all gcc-specific debugginf flags.
+test=`stat --version 2>&1 | grep 'Free Software Foundation' | wc -l`
+if [ 1 -gt $test ]
+then
+ CFLAGS=$OFLAG
+fi