Re: wfmath
Am Sonntag, 20. Oktober 2002 19:21 schrieb Martin Schulze:
> diff -u -Nur --exclude CVS orig/wfmath-0.2.10/debian/rules
> wfmath-0.2.10/debian/rules ---
> orig/wfmath-0.2.10/debian/rules 2002-10-20 19:05:10.000000000 +0200
> +++ wfmath-0.2.10/debian/rules 2002-10-20 19:05:59.000000000 +0200
> @@ -16,10 +16,12 @@
> CC=gcc
> CXX=g++
> CFLAGS=-g -Wall
> +LDFLAGS=-lstdc++
>
> ifneq (,$(findstring mips,$(DEB_BUILD_GNU_TYPE)))
> CC=gcc-3.2
> CXX=g++-3.2
> + LDFLAG += -lm
> endif
> ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
> CFLAGS += -O0
> @@ -32,7 +34,7 @@
>
> config.status: configure
> dh_testdir
> - CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" LDFLAGS="-lstdc++" \
> + CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
> ./configure \
> --host=$(DEB_HOST_GNU_TYPE) \
> --build=$(DEB_BUILD_GNU_TYPE) \
Thanx for all the comments I got so far. I think my littly libstdc++
hack to get a dependency on a libstdc++-package is just wrong.
The problem was that the auto*-tools dont link a libstdc++ lib in by
default. I dont know why, my sponsor dont know too, debian-mentors
didnt helped too. So I added "LDFLAGS=-lstdc++" to get it link during
build time and to get a dependency on it automatically.
Now I wonder if I should remove this hack or extend this hack by
integrating the "LDFLAGS += -lm" hack ? What is better ?
If someone know a way to fix the linkage of the lib that would be the
best way of course.
Michael
--
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
Reply to:
- Follow-Ups:
- Re: wfmath
- From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
- References:
- wfmath
- From: Michael Koch <konqueror@gmx.de>
- Re: wfmath
- From: Martin Schulze <joey@infodrom.org>