fPIC goes in compiler, not linker.

This commit is contained in:
Alcaro 2016-07-20 10:28:37 +02:00
parent 264f03d4f2
commit 5545020695
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -132,7 +132,7 @@ else
endif
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(CC) $(CFLAGS) $(fpic) -c -o $@ $<
clean:
rm -f $(OBJECTS) $(TARGET)