Parcourir la source

Makefile: Remove unnecessary -no-pie for older GCC support

Currently, if:
* GCC doesn't supports -no-pie: Build error
* GCC supports -no-pie
    * GCC is not configured with --enable-default-pie: No-op
    * GCC is configured with --enable-default-pie:
            Slightly worse performance because we still generate -fpie code
            (-pie affects linker, -fpie affects compiler)

So instead of probing for existence of -fno-pie -no-pie, remove it altogether.

Fixes #540: Build breakage on Debian 8 with gcc 4.9.
pull/542/head
Ahmad Fatoum il y a 7 ans
Parent
révision
c1b9104d54
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: C3EAC3DE9321D59B
12 fichiers modifiés avec 12 ajouts et 12 suppressions
  1. +1
    -1
      examples/Makefile
  2. +1
    -1
      games/Makefile
  3. +1
    -1
      games/drturtle/Makefile
  4. +1
    -1
      games/just_do/Makefile
  5. +1
    -1
      games/koala_seasons/Makefile
  6. +1
    -1
      games/light_my_ritual/Makefile
  7. +1
    -1
      games/skully_escape/Makefile
  8. +1
    -1
      games/transmission/Makefile
  9. +1
    -1
      games/wave_collector/Makefile
  10. +1
    -1
      templates/advance_game/Makefile
  11. +1
    -1
      templates/simple_game/Makefile
  12. +1
    -1
      templates/standard_game/Makefile

+ 1
- 1
examples/Makefile Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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)

Chargement…
Annuler
Enregistrer