aboutsummaryrefslogtreecommitdiff
path: root/devel/simpleini/files/patch-tests_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/simpleini/files/patch-tests_Makefile')
-rw-r--r--devel/simpleini/files/patch-tests_Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/simpleini/files/patch-tests_Makefile b/devel/simpleini/files/patch-tests_Makefile
new file mode 100644
index 000000000000..943dd9682db2
--- /dev/null
+++ b/devel/simpleini/files/patch-tests_Makefile
@@ -0,0 +1,22 @@
+--- tests/Makefile.orig 2022-03-15 20:36:43 UTC
++++ tests/Makefile
+@@ -1,14 +1,13 @@
+-CC=g++
+-CFLAGS=-Wall -std=c++11
+-CPPFLAGS=-Wall -std=c++11
+-LDFLAGS=-lpthread -lgtest -lgtest_main -lpthread -L/usr/lib -L/usr/lib/x86_64-linux-gnu
++CXX?=g++
++CXXFLAGS+=-Wall -std=c++11 `pkg-config --cflags gtest_main`
++LDFLAGS=`pkg-config --libs gtest_main`
+
+ OBJS=ts-roundtrip.o ts-snippets.o ts-utf8.o ts-bugfix.o ts-quotes.o ts-noconvert.o
+
+ BIN=./tests
+
+-all: $(OBJS)
+- $(CC) -o $(BIN) $(OBJS) $(LDFLAGS)
++$(BIN): $(OBJS)
++ $(CXX) -o $(BIN) $(OBJS) $(LDFLAGS)
+
+ clean:
+ rm -f core $(OBJS) $(BIN)