Explorar o código

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

Enable -fPIC when compiling library objects
bel2125 %!s(int64=6) %!d(string=hai) anos
pai
achega
fd41d9723b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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) $@