rpm.spec --without static

Tomasz Pala gotar w polanet.pl
Sob, 19 Kwi 2003, 13:50:56 CEST


On Sat, Apr 19, 2003 at 13:27:37 +0200, Tomasz Pala wrote:

> się nie buduje:
> 
> athlon-pld-linux-gcc -O2 -march=athlon -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -s -o file -static file.o ./.libs/libfmagic.a -lz
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> 
> za sprawą -static.

A po doinstalowaniu *-static i tak:

athlon-pld-linux-gcc -O2 -march=athlon -pipe -s -z combreloc -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer -fforce-addr -ffast-math -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -s -z combreloc -o rpmi -s -z combreloc -s -z combreloc -static rpmi.o  ./lib/.libs/librpm.a -L/usr/lib /home/gotar/rpm/BUILD/rpm-4.2/rpmdb/.libs/librpmdb.a -L/usr/local/lib ./rpmdb/.libs/librpmdb.a /home/gotar/rpm/BUILD/rpm-4.2/rpmio/.libs/librpmio.a /usr/lib/libdb-4.1.a ./rpmio/.libs/librpmio.a /usr/lib/libpopt.a -lelf -lrt -lpthread -lz /usr/lib/libbz2.a
./lib/.libs/librpm.a(rpminstall.o)(.text+0x175c): In function `rpmInstall':
: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/lib/libbz2.a(bzlib.o)(.text+0x262a): In function `bzopen_or_bzdopen':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status

-- 
GoTaR <priv0.onet.pl->gotar>            USA sux
        ...Dżahilijja... znowu? Nadal...
PLD stuff at http://mops.uci.agh.edu.pl/~gotar/



Więcej informacji o liście dyskusyjnej pld-devel-pl