Skip to content
Tcl Source Code Artifact [09d02e98ed]
Login

Artifact [09d02e98ed]

Artifact 09d02e98edbcea9067c3e58387ce651939288ae6:

Ticket change [09d02e98ed] - Ticket [874302ffffffffff|874302ffff] <i>prevent picking up wrong lib during static build on OSF/1</i> status still Open with 6 other changes by dkf on 2016-09-01 16:08:30.
D 2016-09-01T16:08:30.138
J closer nobody
J comment Ok,\sthis\sis\sa\stricky\sone.\sFor\sTcl\s8.4.5,\swhen\sbuilding\r\nthe\sstatic\slib\s(configure\s--disable-shared)\son\sDigital\r\nOSF/1\sV4.0,\sit\scan\shappen\sthat\sa\slibtcl8.4.so\sfile\sin\sa\r\nsystem\slibrary\sdirectory\s(e.g.,\sfrom\sa\sprevious\r\ninstallation\sof\san\searlier\spatch\srelease)\sis\spicked\sup\r\nwhen\slinking\stclsh\sand\stcltest,\sinstead\sof\sthe\sintended\r\nlibtcl8.4.a\sin\sthe\spresent\sworking\sdirectory.\sThis\sis\r\ndue\sto\sthe\ssearch\salgorithm\sused\sby\sthe\sOSF/1\slink\r\neditor\s(quote\sfrom\s"man\sld"):\r\n\r\n\s\sWhen\slinking\s[...],\sld\ssearches\sall\slibrary\r\ndirectories\sfor\sthe\r\n\s\sshared\sobject\slibrary\s(libx.so).\sIf\sit\scannot\sfind\r\nthe\sshared\sobject\r\n\s\slibrary,\sit\sagain\ssearches\sall\slibrary\sdirectories\r\nfor\sthe\sarchive\slibrary\r\n\s\s(libx.a).\r\n\r\nThis\sis\sdifferent\sfrom\sthe\ssearch\salgorithm\sof\sld\son\r\nSolaris,\sfor\sinstance.\sIn\sorder\sto\sensure\sthat\sthe\r\nintended\slibrary\sis\spicked\sup\son\sOSF/1\snot\sonly\sduring\r\nshared\sbut\salso\sduring\sstatic\sbuild,\sI\spropose\sto\r\nchange\sline\s1349\sin\sunix/tcl.m4\sfrom\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sLDFLAGS=""\r\n\r\nto\r\n\r\n\s\s\s\s\s\s\s\s\s\s\s\sLDFLAGS="-oldstyle_liblookup"\r\n\r\nThe\sman\spage\sfor\sld\ssays:\r\n\r\n\s\s-oldstyle_liblookup\r\n\s\s\s\s\s\sCause\sld\sto\ssearch\seach\slibrary\sdirectory,\sfirst\r\nfor\sthe\sshared\sobject\r\n\s\s\s\s\s\slibrary\s(libx.so)\sand\sthen\sfor\sthe\sarchive\r\nlibrary\s(libx.a).\r\n\r\nSo,\sthat\swould\sbe\slike\sthe\ssearch\salgorithm\sof\sld\son\r\nSolaris.
J login dkf
J mimetype text/plain
J severity Minor
J subsystem 53.\sConfiguration\sand\sBuild\sTools
K 874302ffffffffffffffffffffffffffffffffff
U dkf
Z 4b4791459a6db82349c7ffee8659464e