Article View: gnu.g++.bug
Article #1521ld++ only looks for libg++.a in /lib, /usr/lib, and /usr/local/lib
From: Jim Duncan
Date: Thu, 03 Nov 1988 04:33
Date: Thu, 03 Nov 1988 04:33
36 lines
1824 bytes
1824 bytes
Making test0 failed because ld++ couldn't find libg++.a. In ld.c, one can
add to the list of searched directories by defining DEFAULT_SEARCH_PREFIX.
> #ifndef DEFAULT_SEARCH_PREFIX
> #define DEFAULT_SEARCH_PREFIX
> #endif
>
> /* Standard directories to search for files specified by -l. */
> char *standard_search_dirs[] = {"/lib", "/usr/lib", "/usr/local/lib",
> DEFAULT_SEARCH_PREFIX};
The following change to the Makefile causes ld++ to know where to look for
libg++.a :
*** 111,117
ld.o: ld.c
# uncomment the following line for Sun 3's
! # $(CC) -Dmc68020 -DSUN3=3 -DTARGET=SUN3 -c $(PROFILE) $(CFLAGS) ld.c
# uncomment the following line for Sun 2's
# $(CC) -Dmc68010 -c $(PROFILE) $(CFLAGS) ld.c
# uncomment the following line for Sun 4's
--- 111,117 -----
ld.o: ld.c
# uncomment the following line for Sun 3's
! $(CC) -Dmc68020 -DSUN3=3 -DTARGET=SUN3 -DDEFAULT_SEARCH_PREFIX=\"$(libdir)\" -c $(PROFILE) $(CFLAGS) ld.c
# uncomment the following line for Sun 2's
# $(CC) -Dmc68010 -c $(PROFILE) $(CFLAGS) ld.c
# uncomment the following line for Sun 4's
***************
Jim Duncan, Computer Science Dept, Old Dominion Univ, Norfolk VA 23529-0162
(804)683-3915 INET: jim@cs.odu.edu UUCP: ..!uunet!xanth!jim
"This could be good or bad." Who said it? Which RFC?
Technical Details
Message-ID:
<6562@xanth.cs.odu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!rutgers!labrea!mcnc!xanth!jimShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!rutgers!labrea!mcnc!xanth!jim From: jim@cs.odu.edu (Jim Duncan) Newsgroups: gnu.g++.bug Subject: ld++ only looks for libg++.a in /lib, /usr/lib, and /usr/local/lib Message-ID: <6562@xanth.cs.odu.edu> Date: 3 Nov 88 04:33:59 GMT Sender: news@xanth.cs.odu.edu Reply-To: jim@cs.odu.edu (Jim Duncan) Followup-To: gnu.g++.bug Organization: Old Dominion University Computer Science Systems Group Lines: 36