Skip to content
Tcl Source Code Artifact [6a29eae227]
Login

Artifact [6a29eae227]

Artifact 6a29eae227a4379c53e5d586204e7f54e0a4bce3:

Ticket change [6a29eae227] - Ticket [874186ffffffffff|874186ffff] <i>wrong flag for ld when doing static build on OSF/1</i> status still Open with 6 other changes by dkf on 2016-09-01 16:08:05.
D 2016-09-01T16:08:05.671
J closer nobody
J comment For\sTcl\s8.4.5,\swhen\sbuilding\sthe\sstatic\slib\s(configure\r\n--disable-shared)\son\sDigital\sOSF/1\sV4.0,\sthe\sdynamic\r\nloading\stests\sin\sthe\sTcl\stest\ssuite\s(gmake\stest)\sfail\r\nbecause\sthe\s-non_shared\sflag\sis\sused\sinstead\sof\sthe\r\n-shared\sflag\swhen\sbuilding\sthe\sdltest/pkg*.so\sfiles.\sI\r\ntraced\sthe\ssource\sof\sthe\sproblem\sto\slines\s1340-1344\sin\r\nunix/tcl.m4:\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sif\stest\s"$SHARED_BUILD"\s=\s"1"\s;\sthen\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-shared\s-expect_unresolved\r\n"*"'\r\n\s\s\s\s\s\s\s\s\s\s\s\selse\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-non_shared\r\n-expect_unresolved\s"*"'\r\n\s\s\s\s\s\s\s\s\s\s\s\sfi\r\n\r\n\r\nI'm\snot\ssure\swhy\sthis\sis\sdone.\sSHLIB_LD\sis\r\nconventionally\sthe\smacro\sfor\sbuilding\sshared\slibs,\sso\r\nyou\swould\snever\swant\sto\suse\s-non_shared\sanyway.\sAlso,\r\nthe\scommand\sfor\sbuilding\sthe\sstatic\slib\son\sDigital\r\nOSF/1\sis\s"ar\scr\slibtcl8.4.a\s...",\sso\s"ld"\sisn't\seven\r\nused\sin\sthis\scase.\r\n\r\nI\swas\sable\sto\ssuccessfully\sbuild\sand\stest\sthe\sstatic\r\nlib\susing\sa\smodified\sdltest/Makefile:\r\n\r\n$\sdiff\sdltest/Makefile.orig\sdltest/Makefile\r\n12c12\r\n<\sSHLIB_LD\s=\s\s\s\s\s\s\s\s\s\s\s\sld\s-non_shared\r\n-expect_unresolved\s"*"\r\n---\r\n>\sSHLIB_LD\s=\s\s\s\s\s\s\s\s\s\s\s\sld\s-shared\s-expect_unresolved\s"*"\r\n\r\n\r\nSince\sthis\sis\sthe\sonly\splace\sin\sthe\sstatic\sbuild\swhere\r\nSHLIB_LD\sis\sused,\sI\sthink\sit\sis\ssafe\sto\smodify\r\nunix/tcl.m4\sso\sthat\son\sline\s1340,\sSHLIB_LD\salways\sgets\r\nset\slike\sthis:\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='ld\s-shared\s-expect_unresolved\s"*"'\r\n\r\nA\ssimilar\sfix\smay\sbe\sneeded\sfor\slines\s1324-1328,\sbut\sI\r\ncan't\sspeak\sfrom\smy\sown\sexperience\sfor\sthat\splatform.
J login dkf
J mimetype text/plain
J severity Minor
J subsystem 53.\sConfiguration\sand\sBuild\sTools
K 874186ffffffffffffffffffffffffffffffffff
U dkf
Z cf7a1e28b2c315a55b6532bea4290642