On Thu, Aug 03, 2006 at 12:05:50AM +0100, Ken Moffat wrote:
>  However, I can see the logic in
> only altering the testsuite, I'll probably go with that after I've
> completed four sets of tests (as-is, CFLAGS, add to CC, sed the
> testsuite).
> 
 Turns out that the change is only required within TESTS_ENVIRONMENT
in the Makefile that Go pointed to, so the following sed will fix
it (broken up to avoid line wrap):

sed -i \
"s/CC='@CC@' CFLAGS='@CFLAGS@'/CC='@CC@' CFLAGS='@CFLAGS@ -fPIC'/" \
    autoconf-lib-link/tests/Makefile.in

(this is _before_ running configure)

 In a way, I'm disappointed not to just throw -fPIC at everything,
the build with CFLAGS="${CFLAGS} -fPIC" was a little faster but it
did definitely change how some things were compiled.

Ken
-- 
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to