浏览代码

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 6 年之前
父节点
当前提交
9518b50247
共有 1 个文件被更改,包括 2 次插入0 次删除
  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) $@