Compile test project with --no-pie in Makefile.
+CC=gcc
+CXX=g++
+
all: testc testcxx
.PHONY: all
testc:
- cc test.c `pkg-config --cflags --libs tinyspline` -Wl,-rpath `pkg-config --variable=libdir tinyspline` -o testc
+ ${CC} test.c --no-pie `pkg-config --cflags --libs tinyspline` -Wl,-rpath `pkg-config --variable=libdir tinyspline` -o testc
testcxx:
- c++ test.cxx `pkg-config --cflags --libs tinysplinecxx` -Wl,-rpath `pkg-config --variable=libdir tinysplinecxx` -o testcxx
+ ${CXX} test.cxx --no-pie `pkg-config --cflags --libs tinysplinecxx` -Wl,-rpath `pkg-config --variable=libdir tinysplinecxx` -o testcxx
test: testc testcxx
./testc
