Browse Source

Merge pull request #542 from a3f/no-no-pie

Makefile: Remove unnecessary -no-pie for older GCC support
Ray 7 years ago
parent
commit
a09d6fd428

+ 1 - 1
examples/Makefile

@@ -215,7 +215,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
             #CC = clang
         endif
         ifeq ($(RAYLIB_LIBTYPE),STATIC)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
         endif
         ifeq ($(RAYLIB_LIBTYPE),SHARED)
         # Explicitly enable runtime link to libraylib.so

+ 1 - 1
games/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/drturtle/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/just_do/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/koala_seasons/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/light_my_ritual/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/skully_escape/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/transmission/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
games/wave_collector/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
templates/advance_game/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
templates/simple_game/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)

+ 1 - 1
templates/standard_game/Makefile

@@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
         CFLAGS += $(RAYLIB_PATH)/src/raylib_icon -Wl,--subsystem,windows
     endif
     ifeq ($(PLATFORM_OS),LINUX)
-        CFLAGS += -no-pie -D_DEFAULT_SOURCE
+        CFLAGS += -D_DEFAULT_SOURCE
     endif
 endif
 ifeq ($(PLATFORM),PLATFORM_RPI)