]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix OSX compiles
authorDale Weiler <killfieldengine@gmail.com>
Fri, 26 Apr 2013 15:43:13 +0000 (15:43 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 26 Apr 2013 15:43:13 +0000 (15:43 +0000)
Makefile

index ff63173cdba2aa975e43c7b066c4232ecb6700e3..6a9ccd87284b5a79e89251ba599b01d0e3ed97d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ CC      ?= clang
 LDFLAGS :=
 LIBS    := -lm
 
-CFLAGS  += -Wall -Wextra -Werror -I. -fno-strict-aliasing $(OPTIONAL)
+CFLAGS  += -Wall -Wextra -Werror -fno-strict-aliasing $(OPTIONAL)
 ifneq ($(shell git describe --always 2>/dev/null),)
     CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\""
 endif
@@ -34,7 +34,7 @@ else
        #Tiny C Compiler doesn't know what -pedantic-errors is
        # and instead of ignoring .. just errors.
        ifneq ($(CC), tcc)
-               CFLAGS +=-pedantic-errors -ffunction-sections -fdata-sections -Wl,-gc-sections
+               CFLAGS += -pedantic-errors
        else
                CFLAGS += -Wno-pointer-sign -fno-common
        endif