samba 2.2.5-pre and solaris 9
Gerald Carter
jerry at samba.org
Fri Jun 7 07:17:01 GMT 2002
On Fri, 7 Jun 2002, Toomas Soome wrote:
> [112] tsoome at muhv:samba/source> gcc --version
> 3.0.2
>
> [113] tsoome at muhv:samba/source> uname -a
> SunOS muhv 5.9 Generic sun4u sparc SUNW,Ultra-5_10
>
> ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.343
> /usr/ccs/bin/ld: illegal option -- E
> usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?]
> file(s)
>
> I added -v to get ld information.
>
> somehow configure set DYNEXP=-Wl,-E in Makefile and this is the source
> of this problem of course.
Ahh...so its a problem of using gcc with the solaris linker.
I don't know of any way to determine the linker other than some
gross hacks and scripts. Is this really that popular of a
combination?
*solaris*) AC_DEFINE(SUNOS5)
BLDSHARED="true"
LDSHFLAGS="-G"
SONAMEFLAG="-h "
if test "${GCC}" = "yes"; then
PICFLAG="-fPIC"
DYNEXP="-Wl,-E"
^^^^^^^^^^^^^^^
else
PICFLAG="-KPIC"
## ${CFLAGS} added for building 64-bit shared
## libs using Sun's Compiler
LDSHFLAGS="-G \${CFLAGS}"
POBAD_CC=""
PICSUFFIX="po.o"
fi
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
cheers, jerry
---------------------------------------------------------------------
Hewlett-Packard http://www.hp.com
SAMBA Team http://www.samba.org
-- http://www.plainjoe.org
"Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2
--"I never saved anything for the swim back." Ethan Hawk in Gattaca--
More information about the samba-technical
mailing list