bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allow/no_undefined_flag


From: Roger While
Subject: Re: allow/no_undefined_flag
Date: Sat, 16 Aug 2008 14:08:09 +0200

Second example for OpenCOBOL -
CC=xlc CPPFLAGS=-I/home/is/isqa/p0978891/oc/2/include LDFLAGS=-L/home/is/isqa/p09788
91/oc/2/lib ./configure --prefix=/home/is/isqa/p0978891/oc/2 --without-db

/bin/sh ../libtool --tag=CC --mode=link xlc -g -Wl,-bexpfull -L/home/is/isqa/p0978891/oc/2/lib -o libcob.la -rpath /home/is/isqa/p0978891/oc/2/lib -version-info 1:0:0 -no-undefined libcob_la-common.lo libcob_la-call.lo libcob_la-strings.lo libcob_la-move.lo libcob_la-numeric.lo libcob_la-intrinsic.lo libcob_la-fileio.lo libcob_la-termio.lo libcob_la-screenio.lo -lm -lgmp -lcurses
generating symbol list for `libcob.la'
/usr/bin/nm -B -BCpg .libs/libcob_la-common.o .libs/libcob_la-call.o .libs/libcob_la-strings.o .libs/libcob_la-move.o .libs/libcob_la-numeric.o .libs/libcob_la-intrinsic.o .libs/libcob_la-fileio.o .libs/libcob_la-termio.o .libs/libcob_la-screenio.o | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > .libs/libcob.exp xlc -Wl,-bM:SRE -o .libs/libcob.so.1 .libs/libcob_la-common.o .libs/libcob_la-call.o .libs/libcob_la-strings.o .libs/libcob_la-move.o .libs/libcob_la-numeric.o .libs/libcob_la-intrinsic.o .libs/libcob_la-fileio.o .libs/libcob_la-termio.o .libs/libcob_la-screenio.o -Wl,-blibpath:/home/is/isqa/p0978891/oc/2/lib:/home/is/isqa/p0978891/oc/2/lib:/usr/lpp/xlopt:/usr/lib:/lib -L/home/is/isqa/p0978891/oc/2/lib -lm -lgmp -lcurses -lc -Wl,-bnoentry -Wl,-bexpfull -Wl,-bE:.libs/libcob.exp ${wl}-bernotok

Roger

Hello Roger,

* Roger While wrote on Sat, Aug 16, 2008 at 06:29:07AM CEST:
> In the first case yes, in the second case no but that is another story.
> You get away with it because, after the shell has replaced ${wl} with nothing,
> cc/xlc pass the resultant -berok/-bernotok to the linker.

Thanks.  Please post a full link command line, preferably also how you
invoked configure.

Cheers,
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]