echo "OPTIMISATIONS=-O2 -pipe -fomit-frame-pointer"
echo "CFLAGS+=-Wall -fPIC -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"
- echo "LDFLAGS+=-Wl,--as-needed"
case $targetos in
Darwin)
echo "SHFLAGS=-shared"
echo "LIBDL=-ldl"
echo "RDYNAMIC=-rdynamic"
+ echo "LDFLAGS+=-Wl,--as-needed"
;;
FreeBSD)
[ "$(uname -m)" = "x86_64" ] && echo "ARCH_X86_64=1" && echo "CFLAGS+=-DARCH_X86_64"
echo "CFLAGS+=-pthread"
echo "SHFLAGS=-shared"
echo "RDYNAMIC=-rdynamic"
+ echo "LDFLAGS+=-Wl,--as-needed"
;;
*)
;;