As I reported earlier today, building on Solaris 2.5 with Sun's
SPARCWorks compiler went OK, except for the linking stage of
temacs. I checked the mailing list archives and saw that someone
else had already encountered the same problem and had devised the
same ugly workaround (manually fixing the Makefile). Since it's no
longer an isolated incident[1], I decided to hack a patch for this.
The following patch works in my environment[2], but may be incorrect in
other combinations of Solaris version and compiler versions. FIF[3]
Amir.
*** configure.orig Thu Mar 4 11:09:36 1999
--- configure Thu Mar 4 11:12:32 1999
***************
*** 12445,12454 ****
ld_dynamic_link_flags=
;;
! sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
ld_dynamic_link_flags="${wl}-Bexport"
;;
sunos4*)
ld_dynamic_link_flags=
;;
--- 12445,12458 ----
ld_dynamic_link_flags=
;;
! sco3.2v5* | unixware* | sysv5* | sysv4*)
ld_dynamic_link_flags="${wl}-Bexport"
;;
+ solaris2* | solaris7*)
+ ld_dynamic_link_flags="${wl}-Bdynamic"
+ ;;
+
sunos4*)
ld_dynamic_link_flags=
;;
Footnotes:
==========
[1] "Once is an happenstance; twice is a coincidence; three times is
a declaration of war" <source unknown>
[2] uname -a;cc -V;gmake -v:
SunOS picard 5.5 Generic_103093-23 sun4m sparc SUNW,SPARCstation-10
cc: SC4.0 18 Oct 1995 C 4.0
GNU Make version 3.77
[3] Forewarned Is Forearmed
--