Skip to content

Commit a5808cf

Browse files
committed
Add -fPIC when building vendorized static Boost libraries
1 parent f7306dd commit a5808cf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ the `-DCPPWAMP_OPT_HEADERS_ONLY` option is omitted.
401401
```bash
402402
git clone https://github.com/ecorm/cppwamp
403403
cd cppwamp
404-
cmake -DCPPWAMP_OPT_VENDORIZE -S . -B ./_build
404+
cmake -DCPPWAMP_OPT_VENDORIZE=On -S . -B ./_build
405405
cmake --build ./_build
406406
cmake --install ./_build --prefix ./_stage/cppwamp
407407
```

cmake/CppWAMPDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function(cppwamp_build_boost source_dir build_dir install_dir)
9696
if(BUILD_SHARED_LIBS)
9797
list(APPEND CPPWAMP_BOOST_BUILD_ARGS "link=shared")
9898
else()
99-
list(APPEND CPPWAMP_BOOST_BUILD_ARGS "link=static")
99+
list(APPEND CPPWAMP_BOOST_BUILD_ARGS "link=static" "cxxflags=-fPIC")
100100
endif()
101101

102102
list(APPEND CPPWAMP_BOOST_BUILD_ARGS "stage")

cppwamp/include/cppwamp/variant.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,22 +481,22 @@ CPPWAMP_API Variant::String typeNameOf();
481481
/// @name Non-member Output
482482
//------------------------------------------------------------------------------
483483
/// @{
484-
/** Outputs the given Array to the given output stream. */
484+
/** Outputs the given Array to the given output stream. @relates Variant */
485485
CPPWAMP_API std::ostream& operator<<(std::ostream& out, const Array& a);
486486

487-
/** Outputs the given Object to the given output stream. */
487+
/** Outputs the given Object to the given output stream. @relates Variant */
488488
CPPWAMP_API std::ostream& operator<<(std::ostream& out, const Object& o);
489489

490-
/** Outputs the given Variant to the given output stream. */
490+
/** Outputs the given Variant to the given output stream. @relates Variant */
491491
CPPWAMP_API std::ostream& operator<<(std::ostream& out, const Variant& v);
492492

493-
/** Outputs the given Array to a new string. */
493+
/** Outputs the given Array to a new string. @relates Variant */
494494
CPPWAMP_API std::string toString(const Array& a);
495495

496-
/** Outputs the given Object to a new string. */
496+
/** Outputs the given Object to a new string. @relates Variant */
497497
CPPWAMP_API std::string toString(const Object& o);
498498

499-
/** Outputs the given Variant to a new string. */
499+
/** Outputs the given Variant to a new string. @relates Variant */
500500
CPPWAMP_API std::string toString(const Variant& v);
501501
/// @}
502502

0 commit comments

Comments
 (0)