diff -ur stfl-0.24/Makefile stfl-0.24.new/Makefile --- stfl-0.24/Makefile 2015-02-12 07:14:33.000000000 -0600 +++ stfl-0.24.new/Makefile 2017-10-10 02:40:59.000000000 -0500 @@ -22,7 +22,7 @@ export CC = gcc -pthread export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC -export LDLIBS += -lncursesw +export LDLIBS += -lncurses -liconv SONAME := libstfl.so.0 VERSION := 0.24 @@ -39,7 +39,7 @@ 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,-install_name,$(SONAME) -o $@ $(LDLIBS) $^ clean: rm -f libstfl.a example core core.* *.o Makefile.deps diff -ur stfl-0.24/perl5/Makefile.PL stfl-0.24.new/perl5/Makefile.PL --- stfl-0.24/perl5/Makefile.PL 2007-09-03 11:13:49.000000000 -0500 +++ stfl-0.24.new/perl5/Makefile.PL 2017-10-10 02:37:34.000000000 -0500 @@ -3,6 +3,6 @@ "NAME" => "stfl", # The -D_LARGEFILE64_SOURCE -D_GNU_SOURCE are needed by perl (not STFL!) on some systems "CCFLAGS" => "-pthread -I.. -D_LARGEFILE64_SOURCE -D_GNU_SOURCE", - "LIBS" => ["-lpthread -lncursesw"], + "LIBS" => ["-lpthread -lncurses -liconv"], "OBJECT" => "stfl_wrap.o ../libstfl.a" ); diff -ur stfl-0.24/stfl_internals.h stfl-0.24.new/stfl_internals.h --- stfl-0.24/stfl_internals.h 2015-01-05 04:47:32.000000000 -0600 +++ stfl-0.24.new/stfl_internals.h 2017-10-10 02:23:32.000000000 -0500 @@ -28,7 +28,7 @@ #endif #include "stfl.h" -#include +#include #include struct stfl_widget_type;