File: cflags

package info (click to toggle)
firedns 0.9.12-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,192 kB
  • ctags: 322
  • sloc: ansic: 4,026; sh: 964; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#require cc
#phase init
#after init_cc
dispn "Attempting to determine correct CFLAGS..."
if test ! "$CFLAGS" = ""; then
	disp "CFLAGS provided by environment: \"$CFLAGS\""
	FM_CFLAGS="$CFLAGS"
elif test "`basename $CC`" = "gcc"; then
	disp "compiler is gcc, using \"-O20 -fstrict-aliasing -funroll-loops -fexpensive-optimizations -fomit-frame-pointer\""
	FM_CFLAGS="-O20 -fstrict-aliasing -funroll-loops -fexpensive-optimizations -fomit-frame-pointer"
else
	disp "compiler is unknown, using \"-O\""
	FM_CFLAGS="-O"
fi