[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Do not link -ldl if the OS does not need/have it.
From: |
Simon 'corecode' Schubert |
Subject: |
[Tinycc-devel] Do not link -ldl if the OS does not need/have it. |
Date: |
Mon, 27 Aug 2007 01:25:26 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (X11/20070627) |
There is no -ldl on DragonFly, probably not on other *BSD.
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
# HG changeset patch
# User Simon 'corecode' Schubert <address@hidden>
# Date 1188155797 -7200
# Node ID 6cd310489cbb841e913d0470ffa48452a54a088e
# Parent a9fb98828aeb0423ca941a0f8604f6d968f5fc1a
Do not link -ldl if the OS does not need/have it.
diff -r a9fb98828aeb -r 6cd310489cbb Makefile
--- a/Makefile Sun Aug 26 21:12:19 2007 +0200
+++ b/Makefile Sun Aug 26 21:16:37 2007 +0200
@@ -5,7 +5,10 @@ include config.mak
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
diff -r a9fb98828aeb -r 6cd310489cbb configure
--- a/configure Sun Aug 26 21:12:19 2007 +0200
+++ b/configure Sun Aug 26 21:16:37 2007 +0200
@@ -67,6 +67,9 @@ case $targetos in
case $targetos in
MINGW32*)
mingw32="yes"
+;;
+DragonFly)
+noldl="yes"
;;
*) ;;
esac
@@ -302,6 +305,9 @@ else
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
- [Tinycc-devel] Do not link -ldl if the OS does not need/have it.,
Simon 'corecode' Schubert <=