Subject: Re: Options to ld odditiy when building pyxml
To: Paul Newhouse <newhouse@rockhead.com>
From: Nick Hudson <skrll@netbsd.org>
List: netbsd-help
Date: 03/08/2002 08:53:27
On Thursday 07 March 2002 10:39 pm, Paul Newhouse wrote:
> Platform-i386:
>
> I'm confused by the -Wl,... stuff being passed to ld. I thought -Wl,...
> was a C command line option to pass ... to ld?
>
> creating build/temp.netbsd-1.5.1_ALPHA-i386-2.2
> cc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_EXPAT_H
-I/usr/pkg/include -I/usr/pkg/include/python2.2 -c extensions/pyexpat.c -o
build/temp.netbsd-1.5.1_ALPHA-i386-2.2/pyexpat.o
> ld -Bshareable -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
build/temp.netbsd-1.5.1_ALPHA-i386-2.2/pyexpat.o -L/usr/pkg/lib -lexpat -o
build/lib.netbsd-1.5.1_ALPHA-i386-2.2/_xmlplus/parsers/pyexpat.so
-Wl,-R/usr/pkg/lib
> ld: invalid command option `-Wl,-R/usr/pkg/lib'
> error: command 'ld' failed with exit status 1
It look to me like a problem with the pkg. In textproc/pyxml/Makefile there is
PYSETUPBUILDARGS+= --ldflags=-Wl,-R${LOCALBASE}/lib
-Wl, should not be passed to the linker.
Please send-pr.
The output of
cc --version
and
echo __ELF__ | cc -E -
would be useful.
Nick