Ver Fonte

Enable PIC for library objects

Without -fPIC when compiling civetweb.o, libcivetweb.so will fail
to link.

Signed-off-by: John Faith <jfaith@impinj.com>
John Faith há 6 anos atrás
pai
commit
9518b50247
1 ficheiros alterados com 2 adições e 0 exclusões
  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) $@