From c1b9104d54814b4084e0d7b113918a6d014e807e Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sat, 12 May 2018 11:41:12 +0200 Subject: 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. --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index d283e807..64cec3d1 100644 --- a/examples/Makefile +++ b/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 -- cgit v1.2.3