SYSTEM: NetBSD-1.4Y (-current ELF) on DEC Alpha
i'm trying to compile PHP4.0RC2 which uses libtool 1.3.4. libtool seems to
be passing a -Wl to ld which doesn't recognizes it.
/bin/sh /usr/pkg/bin/libtool --silent --mode=link gcc -g -O2 -I/usr/pkg/include
-Wall -o libphp4.la -rpath /usr/local/work/php-4.0RC2/libs -L/usr/pkg/lib
-L/u
sr/pkg/lib/mysql -R /usr/pkg/lib -R /usr/pkg/lib/mysql main.lo
internal_functio
ns.lo snprintf.lo php_sprintf.lo configuration-parser.lo
configuration-scanner.l
o safe_mode.lo fopen-wrappers.lo php_realpath.lo alloca.lo php_ini.lo
SAPI.lo rf
c1867.lo dlist.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo
reentr
ancy.lo php_variables.lo php_ticks.lo php_virtual_cwd.lo
Zend/libZend.la sapi/c
gi/libsapi.la regex/libregex.la ext/calendar/libcalendar.la
ext/db/libdb.la ex
t/dba/libdba.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/sysvsem/libsysvsem.la
ext/sysvshm/libsysvshm.la ext/xml/libxml.la -lgdbm -lmysqlclient -lgdbm
-lreso
lv -lm -lcrypt -lresolv
/usr/bin/ld: unrecognized option `-Wl,--whole-archive'
*** Error code 1
Stop.
*** Error code 1
----
# uname -a
NetBSD ns01 1.4Y NetBSD 1.4Y (ns01) #2: Sat May 13 02:41:30 PDT
2000 ******@ns0
1:/usr/src/sys/arch/alpha/compile/ns01 alpha
# ld --version
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf64alpha
# automake --version
automake (GNU automake) 1.4
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Tom Tromey <[EMAIL PROTECTED]>
# gcc --version
egcs-1.1.2
# gcc --help | grep \Wl
-Wl,<options> Pass comma-separated <options> on to the linker
# ld --help | grep "\-\-whole\-archive"
--no-whole-archive Turn off --whole-archive
--whole-archive, -Bforcearchive
# ld --help | grep "\-Wl"
# (nothing returned)