Skip to content
Tcl Source Code Artifact [9501f241f4]
Login

Artifact [9501f241f4]

Artifact 9501f241f419b3626c123b8976d14393f2a9535f:

Ticket change [9501f241f4] - New ticket [874186ffffffffff|874186ffff] <i>wrong flag for ld when doing static build on OSF/1</i>. by rcalmbac on 2004-01-09 23:59:27.
D 2004-01-09T23:59:27
J assignee stwo
J cmimetype text/plain
J comment For\sTcl\s8.4.5,\swhen\sbuilding\sthe\sstatic\slib\s(configure\n--disable-shared)\son\sDigital\sOSF/1\sV4.0,\sthe\sdynamic\nloading\stests\sin\sthe\sTcl\stest\ssuite\s(gmake\stest)\sfail\nbecause\sthe\s-non_shared\sflag\sis\sused\sinstead\sof\sthe\n-shared\sflag\swhen\sbuilding\sthe\sdltest/pkg*.so\sfiles.\sI\ntraced\sthe\ssource\sof\sthe\sproblem\sto\slines\s1340-1344\sin\nunix/tcl.m4:\n\n\s\s\s\s\s\s\s\s\s\s\s\sif\stest\s"$SHARED_BUILD"\s=\s"1"\s;\sthen\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-shared\s-expect_unresolved\n"*"'\n\s\s\s\s\s\s\s\s\s\s\s\selse\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-non_shared\n-expect_unresolved\s"*"'\n\s\s\s\s\s\s\s\s\s\s\s\sfi\n\n\nI'm\snot\ssure\swhy\sthis\sis\sdone.\sSHLIB_LD\sis\nconventionally\sthe\smacro\sfor\sbuilding\sshared\slibs,\sso\nyou\swould\snever\swant\sto\suse\s-non_shared\sanyway.\sAlso,\nthe\scommand\sfor\sbuilding\sthe\sstatic\slib\son\sDigital\nOSF/1\sis\s"ar\scr\slibtcl8.4.a\s...",\sso\s"ld"\sisn't\seven\nused\sin\sthis\scase.\n\nI\swas\sable\sto\ssuccessfully\sbuild\sand\stest\sthe\sstatic\nlib\susing\sa\smodified\sdltest/Makefile:\n\n$\sdiff\sdltest/Makefile.orig\sdltest/Makefile\n12c12\n<\sSHLIB_LD\s=\s\s\s\s\s\s\s\s\s\s\s\sld\s-non_shared\n-expect_unresolved\s"*"\n---\n>\sSHLIB_LD\s=\s\s\s\s\s\s\s\s\s\s\s\sld\s-shared\s-expect_unresolved\s"*"\n\n\nSince\sthis\sis\sthe\sonly\splace\sin\sthe\sstatic\sbuild\swhere\nSHLIB_LD\sis\sused,\sI\sthink\sit\sis\ssafe\sto\smodify\nunix/tcl.m4\sso\sthat\son\sline\s1340,\sSHLIB_LD\salways\sgets\nset\slike\sthis:\n\n\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-shared\s-expect_unresolved\s"*"'\n\nA\ssimilar\sfix\smay\sbe\sneeded\sfor\slines\s1324-1328,\sbut\sI\ncan't\sspeak\sfrom\smy\sown\sexperience\sfor\sthat\splatform.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter rcalmbac
J subsystem 53.\sConfigure\sand\sBuild\sTools
J title wrong\sflag\sfor\sld\swhen\sdoing\sstatic\sbuild\son\sOSF/1
J type Patch
K 874186ffffffffffffffffffffffffffffffffff
U rcalmbac
Z 3a89ab3477a0b90577e60da04d7904cf