changeset 460:32aea31ba434

Patch from Simon 'corecode' Schubert to skil -ldl on DragonFly BSD.
author Rob Landley <rob@landley.net>
date Mon, 27 Aug 2007 00:48:17 -0500
parents 4c3895074170
children 74f22f09bbf7
files Makefile configure
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Aug 18 01:13:00 2007 -0500
+++ b/Makefile	Mon Aug 27 00:48:17 2007 -0500
@@ -5,7 +5,10 @@
 
 CFLAGS+=-g -Wall -fsigned-char -Os
 ifndef CONFIG_WIN32
-LIBS=-ldl -lm
+LIBS=-lm
+ifndef CONFIG_NOLDL
+LIBS+=-ldl
+endif
 BCHECK_O=bcheck.o
 endif
 CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
--- a/configure	Sat Aug 18 01:13:00 2007 -0500
+++ b/configure	Mon Aug 27 00:48:17 2007 -0500
@@ -68,6 +68,9 @@
 MINGW32*)
 mingw32="yes"
 ;;
+DragonFly)
+noldl="yes"
+;;
 *) ;;
 esac
 
@@ -302,6 +305,9 @@
   echo "Unsupported CPU"
   exit 1
 fi
+if test "$noldl" = "yes" ; then
+  echo "CONFIG_NOLDL=yes" >> config.mak
+fi
 if test "$mingw32" = "yes" ; then
   echo "CONFIG_WIN32=yes" >> config.mak
   echo "#define CONFIG_WIN32 1" >> $TMPH