pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bzip 2 fails to build on IRIX 6.5



Am 07.10.2019 um 18:45 schrieb Mark Kirby:
> Having dug some more into this the -set_version is set in
> /usr/pkg/bin/libtool in the archive cmds= flag.
>
> archive_cmds="\$CC -shared \$pic_flag -nostdlib \$predep_objects
> \$libobjs \$deplibs \$postdep_objects \$compiler_flags \$wl-soname
> \$wl\$soname \\\`test -n \\\"\$verstring\\\" && func_echo_all
> \\\"\$wl-set_version \$wl\$verstring\\\"\\\` \$wl-update_registry
> \$wl\$output_objdir/so_locations -o \$lib"
>
> if i edit those lines to read
> archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs
> \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
>
> then i obviously don’t get the set version error but it fails with

I don't understand why you edited the command line so massively. It
should be enough to only remove the "test -n ... verstring". Did you try
that also?

Anyway, fixing something at that point is wrong. When libtool is built,
it must not include this -set_version option. I would look somewhere
over there to see how the devel/libtool package decides whether to use
the native linker or the GNU linker, and what options to set.


Home | Main Index | Thread Index | Old Index