Quellcode durchsuchen

CFLAGS is used after PHYSFSCFLAGS, so you can override optimization flags, etc.

Ryan C. Gordon vor 21 Jahren
Ursprung
Commit
a27c289f29
3 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 0
      CHANGELOG
  2. 0 1
      TODO
  3. 1 1
      configure.in

+ 1 - 0
CHANGELOG

@@ -3,6 +3,7 @@
  */
 
 10302004 - Fixed a strcpy that should have been a strcat. (thanks, Tolga!)
+           Build system respects external CFLAGS now. (thanks, Adam!)
 10062004 - Removed profiling code from physfs.c.
 09292004 - Every API that can return a list of strings can now use a
            callback mechanism if the application wants to do it's own

+ 0 - 1
TODO

@@ -44,7 +44,6 @@ Some might be dupes, some might be done already.
 - MIX enumerates files as hash values.
 - Should file enumeration return an error or set error state?
 - Ryanify pocketpc.c ...
-- CFLAGS fix.
 - Update internal zlib?
 - Get svn hooks working.
 - maybe other stuff.

+ 1 - 1
configure.in

@@ -514,7 +514,7 @@ AC_CHECK_FUNCS([memset strrchr])
 
 AC_CHECK_SIZEOF(int, 4)
 
-CFLAGS="$CFLAGS $PHYSFSCFLAGS -D_REENTRANT -D_THREAD_SAFE"
+CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
 LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
 
 dnl Add Makefile conditionals