pkgsrc-Users archive

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

Use of linker flag -soname on Interix



Hi,

I'm having trouble building some packages (openssl, ghostscript) on Interix
which use -Wl,-soname=... The linker expects -Wl,--soname (note the extra
dash) or, alternatively, -Wl,-h. I wonder if I'm the only one with this
problem. My compiler is

Reading specs from /opt/gcc.3.3/lib/gcc-lib/i586-pc-interix3/3.3/specs
Configured with:  : (reconfigured)  : (reconfigured) 
/dev/fs/C/gnu2.intelegcs.source//configure --verbose --prefix=/opt/gcc.3.3 
--disable-shared --with-stabs --enable-nls --with-local-prefix=/opt/gcc.3.3 
--with-gnu-as --with-gnu-ld --enable-targets=i586-pc-interix3 
--enable-threads=posix
Thread model: posix
gcc version 3.3

Applying the following patch in mk/wrapper lets me build the packages I
was trying to build:

Index: cmd-sink-interix-gcc
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/cmd-sink-interix-gcc,v
retrieving revision 1.4
diff -u -p -r1.4 cmd-sink-interix-gcc
--- cmd-sink-interix-gcc        24 Jan 2005 21:21:45 -0000      1.4
+++ cmd-sink-interix-gcc        6 Mar 2009 15:31:40 -0000
@@ -43,6 +43,11 @@ while ! queue_is_empty cmdbuf; do
                $echo "$0: Interix GNU cc doesn't support \`$arg'." 1>&2
                exit 1
                ;;
+       -Wl,-soname=*)
+               arg="-Wl,-h,"${arg#"-Wl,-soname="}
+               $debug_log $wrapperlog "    (cmd-sink-interix-gcc) pop: $arg"
+               . $buildcmd
+               ;;
        *)
                . $buildcmd
                ;;

This seems to be similar to what is needed for SunPRO, according to
transform-sunpro-cc. I'm not sure if something similar is needed in
*-interix-ld as I've not come across a package that uses it yet.

Cheers,

Joachim


Home | Main Index | Thread Index | Old Index