]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Build fix for clang.
authorGunnar Beutner <redacted>
Wed, 24 Jul 2013 14:43:02 +0000 (16:43 +0200)
committerGunnar Beutner <redacted>
Wed, 24 Jul 2013 14:43:02 +0000 (16:43 +0200)
build.mk.in

index 55f1b39959d91b548300f3eaa7ae4063fde8853d..d61aeaeb1fc48511924282c2ac052300b119e5e5 100644 (file)
@@ -54,7 +54,7 @@ MFLAGS+=BUILDID=$(BUILDID)
 .SUFFIXES: .so .y .l
 
 .o.so:
-       $(CC) -nostartfiles -shared -o $@ $^ $(LDFLAGS)
+       $(CC) -nostartfiles -Wl,--export-dynamic -shared -o $@ $^ $(LDFLAGS)
 
 .y.c:  ;
 
@@ -65,9 +65,6 @@ default: all
 CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC
 CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security
 
-ifndef CLANG
 ifndef NOC99
 CFLAGS+=-std=c99
 endif
-CFLAGS+=-export-dynamic
-endif