mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* configure.in: Set and substitute HLDENV.
* configure: Rebuild. * Makefile.in (HLDENV): New variable. (gprof): Use $(HLDENV).
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Thu Aug 22 17:12:30 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* configure.in: Set and substitute HLDENV.
|
||||||
|
* configure: Rebuild.
|
||||||
|
* Makefile.in (HLDENV): New variable.
|
||||||
|
(gprof): Use $(HLDENV).
|
||||||
|
|
||||||
Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
|
Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
|
||||||
|
|
||||||
* core.c (read_function_mappings): Cast xmalloc return.
|
* core.c (read_function_mappings): Cast xmalloc return.
|
||||||
|
@ -54,6 +54,7 @@ GEN_FILES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
|||||||
CFLAGS=-g -DDEBUG
|
CFLAGS=-g -DDEBUG
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
HLDFLAGS = @HLDFLAGS@
|
HLDFLAGS = @HLDFLAGS@
|
||||||
|
HLDENV = @HLDENV@
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $<
|
$(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $<
|
||||||
|
|
||||||
@ -103,7 +104,7 @@ install: all
|
|||||||
$(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
|
$(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
|
||||||
|
|
||||||
gprof: $(OBJS) $(LIBDEPS)
|
gprof: $(OBJS) $(LIBDEPS)
|
||||||
$(CC) -o $(PROG) $(CFLAGS) $(HLDFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
|
$(HLDENV) $(CC) -o $(PROG) $(CFLAGS) $(HLDFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
|
||||||
|
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
-rm -f *.o core gprof nohup.out \
|
-rm -f *.o core gprof nohup.out \
|
||||||
|
8
gprof/configure
vendored
8
gprof/configure
vendored
@ -894,6 +894,7 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
HLDFLAGS=
|
HLDFLAGS=
|
||||||
|
HLDENV=
|
||||||
# If we have shared libraries, try to set rpath reasonably.
|
# If we have shared libraries, try to set rpath reasonably.
|
||||||
if test "${shared}" = "true"; then
|
if test "${shared}" = "true"; then
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
@ -908,9 +909,12 @@ if test "${shared}" = "true"; then
|
|||||||
*-*-linux*)
|
*-*-linux*)
|
||||||
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
||||||
;;
|
;;
|
||||||
*-*-sysv4* | *-*-solaris*)
|
*-*-solaris*)
|
||||||
HLDFLAGS='-R $(libdir)'
|
HLDFLAGS='-R $(libdir)'
|
||||||
;;
|
;;
|
||||||
|
*-*-sysv4*)
|
||||||
|
HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -937,6 +941,7 @@ case "${host}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
trap '' 1 2 15
|
trap '' 1 2 15
|
||||||
cat > confcache <<\EOF
|
cat > confcache <<\EOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@ -1087,6 +1092,7 @@ s%@build_os@%$build_os%g
|
|||||||
s%@MY_TARGET@%$MY_TARGET%g
|
s%@MY_TARGET@%$MY_TARGET%g
|
||||||
s%@BFDLIB@%$BFDLIB%g
|
s%@BFDLIB@%$BFDLIB%g
|
||||||
s%@HLDFLAGS@%$HLDFLAGS%g
|
s%@HLDFLAGS@%$HLDFLAGS%g
|
||||||
|
s%@HLDENV@%$HLDENV%g
|
||||||
|
|
||||||
CEOF
|
CEOF
|
||||||
EOF
|
EOF
|
||||||
|
@ -60,6 +60,7 @@ esac
|
|||||||
AC_SUBST(BFDLIB)
|
AC_SUBST(BFDLIB)
|
||||||
|
|
||||||
HLDFLAGS=
|
HLDFLAGS=
|
||||||
|
HLDENV=
|
||||||
# If we have shared libraries, try to set rpath reasonably.
|
# If we have shared libraries, try to set rpath reasonably.
|
||||||
if test "${shared}" = "true"; then
|
if test "${shared}" = "true"; then
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
@ -74,9 +75,12 @@ if test "${shared}" = "true"; then
|
|||||||
*-*-linux*)
|
*-*-linux*)
|
||||||
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
||||||
;;
|
;;
|
||||||
*-*-sysv4* | *-*-solaris*)
|
*-*-solaris*)
|
||||||
HLDFLAGS='-R $(libdir)'
|
HLDFLAGS='-R $(libdir)'
|
||||||
;;
|
;;
|
||||||
|
*-*-sysv4*)
|
||||||
|
HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -102,5 +106,6 @@ case "${host}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(HLDFLAGS)
|
AC_SUBST(HLDFLAGS)
|
||||||
|
AC_SUBST(HLDENV)
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile)
|
||||||
|
Reference in New Issue
Block a user