File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Release/tests/Functional/http Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
35
35
36
36
$(OUTPUT_DIR ) /httpclient_test.so : $(OBJECTS )
37
37
@echo " Building library $@ "
38
- @$(CXX ) -shared $(CXXFLAGS ) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS ) $^ $(LDLIBS ) -o $@
38
+ @$(CXX ) -fPIC - shared $(CXXFLAGS ) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS ) $^ $(LDLIBS ) -o $@
39
39
40
40
$(OBJECTS ) : % .$(MODE ) .o: % .cpp
41
41
@echo " Compiling $< -> $@ "
42
- @$(CXX ) $(CXXFLAGS ) -c $< -o $@
42
+ @$(CXX ) -fPIC $(CXXFLAGS ) -c $< -o $@
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
25
25
26
26
$(OUTPUT_DIR ) /httplistener_test.so : $(OBJECTS )
27
27
@echo " Building library $@ "
28
- @$(CXX ) -shared $(CXXFLAGS ) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS ) $^ $(LDLIBS ) -o $@
28
+ @$(CXX ) -fPIC - shared $(CXXFLAGS ) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS ) $^ $(LDLIBS ) -o $@
29
29
30
30
$(OBJECTS ) : % .$(MODE ) .o: % .cpp
31
31
@echo " Compiling $< -> $@ "
32
- @$(CXX ) $(CXXFLAGS ) -c $< -o $@
32
+ @$(CXX ) -fPIC $(CXXFLAGS ) -c $< -o $@
You can’t perform that action at this time.
0 commit comments