aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-01-07 10:35:56 -0500
committerYour Name <you@example.com>2021-01-07 10:35:56 -0500
commit5056d76c49ffb5b9a2b8a915d8f83770e0374f76 (patch)
treec1c39d22d1bc469af823787c059cde9c84661480
parentde89946f5fe78323f113c6216c8b994a1eba49fe (diff)
downloadlibbible-5056d76c49ffb5b9a2b8a915d8f83770e0374f76.tar.gz
libbible-5056d76c49ffb5b9a2b8a915d8f83770e0374f76.tar.bz2
libbible-5056d76c49ffb5b9a2b8a915d8f83770e0374f76.zip
Fixed ldflags for compilation on pureos
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 032e165..f497ff4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CC=g++
LIBS=sword minizip
CFLAGS=-c -Wall -fPIC -std=c++17
-LDFLAGS=
+LDFLAGS=-lstdc++fs
SOURCES=libbible.cc mods.cc settings.cc
OBJECTS=$(SOURCES:.cc=.o)
LIBRARY=libbible.so
@@ -21,19 +21,19 @@ install: $(LIBRARY) $(EXECUTABLE)
install -m 755 bible $(DESTDIR)$(PREFIX)/bin/
test: $(OBJECTS) testLibbible.o
- $(CC) $(LDFLAGS) $(OBJECTS) testLibbible.o -o $@ `pkg-config $(LIBS) --libs` -lcppunit
+ $(CC) $(OBJECTS) testLibbible.o -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` -lcppunit
testLibbible.o: testLibbible.cc
$(CC) $(CFLAGS) testLibbible.cc -o $@
bible: $(OBJECTS) bible.o
- $(CC) $(LDFLAGS) $(OBJECTS) bible.o -o $@ `pkg-config $(LIBS) --libs`
+ $(CC) $(OBJECTS) bible.o -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs`
bible.o: bible.cc
$(CC) $(CFLAGS) bible.cc -o $@
$(LIBRARY): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) -shared -o $@ `pkg-config $(LIBS) --libs`
+ $(CC) $(OBJECTS) -shared -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs`
.cc.o:
$(CC) $(CFLAGS) $< -o $@ `pkg-config $(LIBS) --cflags`