From 5545020695c456b3975ab190ccb3b0dc3c54c804 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Wed, 20 Jul 2016 10:28:37 +0200 Subject: [PATCH] fPIC goes in compiler, not linker. --- cores/libretro-test-gl/Makefile | 2 +- cores/libretro-test/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/libretro-test-gl/Makefile b/cores/libretro-test-gl/Makefile index 83b45b80f3..96cac5bac5 100644 --- a/cores/libretro-test-gl/Makefile +++ b/cores/libretro-test-gl/Makefile @@ -163,7 +163,7 @@ $(TARGET): $(OBJECTS) $(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) $(LIBS) -lm $(EXTRA_GL_LIBS) %.o: %.c - $(CC) -I../../libretro-common/include $(CFLAGS) -c -o $@ $< + $(CC) -I../../libretro-common/include $(CFLAGS) $(fpic) -c -o $@ $< clean: rm -f $(OBJECTS) $(TARGET) diff --git a/cores/libretro-test/Makefile b/cores/libretro-test/Makefile index 847a8617d9..29699a1d8d 100644 --- a/cores/libretro-test/Makefile +++ b/cores/libretro-test/Makefile @@ -132,7 +132,7 @@ else endif %.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) $(fpic) -c -o $@ $< clean: rm -f $(OBJECTS) $(TARGET)