This patch fixes shared-lib build. James 2015. --- highlight-3.20/src/makefile 2014-11-27 02:51:32.000000000 +0700 +++ highlight-3.20-new/src/makefile 2015-01-27 17:21:06.484547337 +0700 @@ -15,7 +15,7 @@ CXX=c++ # Added -qt4 because of Arch Linux Qt5 migration -QMAKE=qmake-qt4 +QMAKE=qmake CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG #CFLAGS:=-ggdb ${CFLAGS} @@ -103,7 +103,7 @@ ${AR} ${ARFLAGS} libhighlight.a ${CORE_OBJECTS} ${DILU_OBJECTS} lib-shared libhighlight.so.1.0: ${CORE_OBJECTS} - ld -shared -soname libhighlight.so.1 -o libhighlight.so.${SO_VERSION} -lc ${CORE_OBJECTS} + g++ -shared -Wl,-soname,libhighlight.so.1 -o libhighlight.so.${SO_VERSION} -Wl,--whole-archive ${CORE_OBJECTS} -Wl,--no-whole-archive gui-qt: highlight-gui