Selaa lähdekoodia

Merge pull request #664 from hojalot/compile-fpic-cflags

Enable -fPIC when compiling library objects
bel2125 6 vuotta sitten
vanhempi
commit
fd41d9723b
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -332,6 +332,8 @@ distclean: clean
 	$(RMF) $(CPROG) lib$(CPROG).so lib$(CPROG).a *.dmg *.msi *.exe lib$(CPROG).dll lib$(CPROG).dll.a
 	$(RMF) $(UNIT_TEST_PROG)
 
+$(LIB_OBJECTS): CFLAGS += -fPIC
+
 lib$(CPROG).a: CFLAGS += -fPIC
 lib$(CPROG).a: $(LIB_OBJECTS)
 	@$(RMF) $@