diff --git a/test/tap/tap/Makefile b/test/tap/tap/Makefile index 45097bbe83..8706b1fe4a 100644 --- a/test/tap/tap/Makefile +++ b/test/tap/tap/Makefile @@ -104,6 +104,7 @@ cpp-dotenv/static/cpp-dotenv/libcpp_dotenv.a: cd cpp-dotenv/static && tar -zxf ../cpp-dotenv-*.tar.gz cd cpp-dotenv/static/cpp-dotenv && patch src/dotenv.cpp < ../../dotenv.cpp.patch cd cpp-dotenv/static/cpp-dotenv && patch include/dotenv.h < ../../dotenv.h.patch + cd cpp-dotenv/static/cpp-dotenv && patch -p0 < ../../nm_clang_fix.patch cd cpp-dotenv/static/cpp-dotenv && cmake . -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Debug cd cpp-dotenv/static/cpp-dotenv && CC=${CC} CXX=${CXX} ${MAKE} @@ -112,6 +113,7 @@ cpp-dotenv/dynamic/cpp-dotenv/libcpp_dotenv.so: cd cpp-dotenv/dynamic && tar -zxf ../cpp-dotenv-*.tar.gz cd cpp-dotenv/dynamic/cpp-dotenv && patch src/dotenv.cpp < ../../dotenv.cpp.patch cd cpp-dotenv/dynamic/cpp-dotenv && patch include/dotenv.h < ../../dotenv.h.patch + cd cpp-dotenv/dynamic/cpp-dotenv && patch -p0 < ../../nm_clang_fix.patch cd cpp-dotenv/dynamic/cpp-dotenv && cmake . -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_RPATH="../tap:../../tap" -DCMAKE_BUILD_TYPE=Debug cd cpp-dotenv/dynamic/cpp-dotenv && CC=${CC} CXX=${CXX} ${MAKE} diff --git a/test/tap/tap/cpp-dotenv/nm_clang_fix.patch b/test/tap/tap/cpp-dotenv/nm_clang_fix.patch new file mode 100644 index 0000000000..2cf3067820 --- /dev/null +++ b/test/tap/tap/cpp-dotenv/nm_clang_fix.patch @@ -0,0 +1,12 @@ +diff --git src/dotenv.cpp src/dotenv.cpp +index 89bd3c1..1dcaf5a 100644 +--- src/dotenv.cpp ++++ src/dotenv.cpp +@@ -8,7 +8,6 @@ + + + using namespace std; +-using namespace dotenv; + + + dotenv::dotenv& dotenv::dotenv::load_dotenv(const string& dotenv_path, const bool overwrite, const bool interpolate)