Skip to content

Commit d894a3a

Browse files
author
Ognjen Sobajic
committed
Fixing the build by removing -fPIC option
1 parent eec5638 commit d894a3a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Release/src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ $(LIBRARY_DST): $(OBJECTS)
106106
clean:
107107
rm $(OBJECTS) $(PRECOMPILED_HEADERS) $(LIBRARY)
108108

109-
.SILENT:clean
109+
.SILENT:clean

Release/tests/Functional/http/client/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ FILENAMES = \
3434
OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
3535

3636
$(OUTPUT_DIR)/httpclient_test.so: $(OBJECTS)
37-
$(CXX) -fPIC -shared $(CXXFLAGS) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS) $^ $(LDLIBS) -o $@
37+
@echo "Building library $@"
38+
@$(CXX) -shared $(CXXFLAGS) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS) $^ $(LDLIBS) -o $@
3839

3940
$(OBJECTS): %.$(MODE).o: %.cpp
40-
$(CXX) $(CXXFLAGS) -c $< -o $@
41+
@echo "Compiling $< -> $@"
42+
@$(CXX) $(CXXFLAGS) -c $< -o $@

Release/tests/Functional/http/listener/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ FILENAMES = \
2424
OBJECTS = $(addsuffix .$(MODE).o, $(FILENAMES))
2525

2626
$(OUTPUT_DIR)/httplistener_test.so: $(OBJECTS)
27-
$(CXX) -fPIC -shared $(CXXFLAGS) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS) $^ $(LDLIBS) -o $@
27+
@echo "Building library $@"
28+
@$(CXX) -shared $(CXXFLAGS) $(shell pkg-config libxml++-2.6 --cflags) $(LDFLAGS) $^ $(LDLIBS) -o $@
2829

2930
$(OBJECTS): %.$(MODE).o: %.cpp
30-
$(CXX) $(CXXFLAGS) -c $< -o $@
31+
@echo "Compiling $< -> $@"
32+
@$(CXX) $(CXXFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)