Closed Bug 4472 Opened 26 years ago Closed 26 years ago

Patches for NetBSD build

Categories

(SeaMonkey :: Build Config, defect, P3)

Other
NetBSD
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: gduzan, Assigned: wtc)

Details

The following patch gets NetBSD building and at least starting the GUI on i386 and should be correct for most platforms. It was tested on NetBSD/i386-current, but should also work with 1.3.X. ("cc -shared" was broken on a.out platforms in 1.3.X, while the "ld -shared ..." solution should work.) Index: mozilla/configure.in =================================================================== RCS file: /cvsroot/mozilla/configure.in,v retrieving revision 1.227 diff -c -r1.227 configure.in *** configure.in 1999/04/01 07:26:39 1.227 --- configure.in 1999/04/01 11:50:38 *************** *** 291,301 **** *-netbsd*) DLL_SUFFIX="so.1.0" DSO_CFLAGS='-fPIC' ! DSO_LDOPTS='-Wl,-shared -Wl,-h -Wl,$(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' ! MKSHLIB='$(CXX) $(DSO_LDOPTS)' ! dnl What is this supposed to tell us...? I don't see the point (at least on 1.3H for alpha). if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then ! DSO_LDOPTS="-Bshareable $DSO_LDOPTS" fi if test "$LIBRUNPATH"; then DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS" --- 291,305 ---- *-netbsd*) DLL_SUFFIX="so.1.0" DSO_CFLAGS='-fPIC' ! DSO_LDOPTS='-shared -h $(@:$(OBJDIR)/%.$(DLL_SUFFIX)=%.$(DLL_SUFFIX))' ! MKSHLIB='$(LD) $(DSO_LDOPTS)' ! MKSHLIB_FORCE_ALL='--whole-archive' ! MKSHLIB_UNFORCE_ALL='--no-whole-archive' ! CFLAGS="$CFLAGS -Dunix" ! CXXFLAGS="$CXXFLAGS -Dunix" ! dnl Test for a.out platform and handle C++ libraries correctly if $CC -E - -dM </dev/null | grep -v __ELF__ >/dev/null; then ! DSO_LDOPTS="-shared /usr/lib/c++rt0.o" fi if test "$LIBRUNPATH"; then DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS" Index: mozilla/nsprpub/pr/src/linking/prlink.c =================================================================== RCS file: /cvsroot/mozilla/nsprpub/pr/src/linking/prlink.c,v retrieving revision 3.21 diff -c -r3.21 prlink.c *** prlink.c 1999/02/20 00:58:42 3.21 --- prlink.c 1999/04/01 11:50:41 *************** *** 55,61 **** * On these platforms, symbols have a leading '_'. */ #if defined(SUNOS4) || defined(RHAPSODY) || defined(NEXTSTEP) \ ! || defined(OPENBSD) || defined(WIN16) #define NEED_LEADING_UNDERSCORE #endif --- 55,61 ---- * On these platforms, symbols have a leading '_'. */ #if defined(SUNOS4) || defined(RHAPSODY) || defined(NEXTSTEP) \ ! || defined(OPENBSD) || defined(WIN16) || defined(NETBSD) #define NEED_LEADING_UNDERSCORE #endif
Assignee: briano → wtc
The configure.in change is checked in now. Reassigning the bug to Wan-Teh for the NSPR change.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The patch for prlink.c is checked in. Marked the bug fixed.
vrfy, prlink.c; the closest i found for configure.in was: http://lxr.mozilla.org/seamonkey/source/configure.in#704
Status: RESOLVED → VERIFIED
Setting OS field.
OS: other → NetBSD
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.