Skip to content

Commit 94a438c

Browse files
author
Ognjen Sobajic
committed
Fixing the build
1 parent d894a3a commit 94a438c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Release/tests/Functional/http/client/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
3535

3636
$(OUTPUT_DIR)/httpclient_test.so: $(OBJECTS)
3737
@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 $@
3939

4040
$(OBJECTS): %.$(MODE).o: %.cpp
4141
@echo "Compiling $< -> $@"
42-
@$(CXX) $(CXXFLAGS) -c $< -o $@
42+
@$(CXX) -fPIC $(CXXFLAGS) -c $< -o $@

Release/tests/Functional/http/listener/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
2525

2626
$(OUTPUT_DIR)/httplistener_test.so: $(OBJECTS)
2727
@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 $@
2929

3030
$(OBJECTS): %.$(MODE).o: %.cpp
3131
@echo "Compiling $< -> $@"
32-
@$(CXX) $(CXXFLAGS) -c $< -o $@
32+
@$(CXX) -fPIC $(CXXFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)