Gentoo Archives: gentoo-alt

From: Mike Frysinger <vapier@g.o>
To: "C. Bergström" <cbergstrom@×××××××××.com>
Cc: gentoo-alt@l.g.o, sandbox@g.o
Subject: Re: [gentoo-alt] Any interest in sandbox on (open)solaris?
Date: Thu, 29 Jan 2009 08:02:37
Message-Id: 200901290302.34341.vapier@gentoo.org
In Reply to: Re: [gentoo-alt] Any interest in sandbox on (open)solaris? by "C. Bergström"
On Saturday 17 January 2009 17:28:36 C. Bergström wrote:
> libsandbox/Makefile.in > libsandbox_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ > $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsandbox_la_CFLAGS) \ > - $(CFLAGS) $(libsandbox_la_LDFLAGS) $(LDFLAGS) -o $@ > + $(CFLAGS) $(libsandbox_la_LDFLAGS) -M libsandbox.map $(LDFLAGS) > ... > libsandbox_la_LDFLAGS = \ > -no-undefined \ > - -nodefaultlibs \ > - -Wl,--version-script,libsandbox.map > + -nodefaultlibs
cant you just change the libsandbox_la_LDFLAGS definition rather than both places ? does opensolaris' linker accept -Wl,-Map,libsandbox.map ?
> configure > @@ -23460,6 +23460,7 @@ > LIBC_PATH=$( > $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == > "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log > ) > +LIBC_PATH=/lib/amd64/libc.so
please figure out an equivalent method then. look up a few lines to where we run $CC with -Wl,-verbose in order to get the linking trace, and then we use that to figure out the libc.so path.
> -$CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -o libctest libctest.c > +$CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c
yeah, -Wall here is pointless so i can drop that
> if test "$GCC" = yes; then > - CFLAGS="$CFLAGS -Wall" > + CFLAGS="$CFLAGS " > fi
why ? if you're using GCC, then -Wall should work fine -mike

Replies

Subject Author
Success! Re: [gentoo-alt] Any interest in sandbox on (open)solaris? "C. Bergström" <cbergstrom@×××××××××.com>
Re: [gentoo-alt] Any interest in sandbox on (open)solaris? Mike Frysinger <vapier@g.o>