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"
1 On Saturday 17 January 2009 17:28:36 C. Bergström wrote:
2 > libsandbox/Makefile.in
3 > libsandbox_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
4 > $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libsandbox_la_CFLAGS) \
5 > - $(CFLAGS) $(libsandbox_la_LDFLAGS) $(LDFLAGS) -o $@
6 > + $(CFLAGS) $(libsandbox_la_LDFLAGS) -M libsandbox.map $(LDFLAGS)
7 > ...
8 > libsandbox_la_LDFLAGS = \
9 > -no-undefined \
10 > - -nodefaultlibs \
11 > - -Wl,--version-script,libsandbox.map
12 > + -nodefaultlibs
13
14 cant you just change the libsandbox_la_LDFLAGS definition rather than both
15 places ? does opensolaris' linker accept -Wl,-Map,libsandbox.map ?
16
17 > configure
18 > @@ -23460,6 +23460,7 @@
19 > LIBC_PATH=$(
20 > $AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 ==
21 > "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log
22 > )
23 > +LIBC_PATH=/lib/amd64/libc.so
24
25 please figure out an equivalent method then. look up a few lines to where we
26 run $CC with -Wl,-verbose in order to get the linking trace, and then we use
27 that to figure out the libc.so path.
28
29 > -$CC $CFLAGS $CPPFLAGS $LDFLAGS -Wall -o libctest libctest.c
30 > +$CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c
31
32 yeah, -Wall here is pointless so i can drop that
33
34 > if test "$GCC" = yes; then
35 > - CFLAGS="$CFLAGS -Wall"
36 > + CFLAGS="$CFLAGS "
37 > fi
38
39 why ? if you're using GCC, then -Wall should work fine
40 -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>