void-packages/srcpkgs/stfl/patches/cross-fix.patch
2014-11-16 17:39:11 +01:00

23 lines
814 B
Diff

--- Makefile.orig 2014-11-16 17:36:22.654752366 +0100
+++ Makefile 2014-11-16 17:36:51.204753383 +0100
@@ -20,9 +20,8 @@
include Makefile.cfg
-export CC = gcc -pthread
-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
-export LDLIBS += -lncursesw
+export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC -pthread
+export LDLIBS += -lncursesw -lpthread
SONAME := libstfl.so.0
VERSION := 0.23
@@ -39,7 +38,7 @@ libstfl.a: public.o base.o parser.o dump
libstfl.so.$(VERSION): public.o base.o parser.o dump.o style.o binding.o iconv.o \
$(patsubst %.c,%.o,$(wildcard widgets/*.c))
- $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $(LDLIBS) $^
+ $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $(LDLIBS) $(LDFLAGS) $^
clean:
rm -f libstfl.a example core core.* *.o Makefile.deps