From 86f12bc0454db726ec3f230315adb3f2510aa8df Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 19 Nov 2002 17:05:34 +0000 Subject: 2002-11-19 Ralf Corsepius * automake/compile.am: Remove LD_PATHS (Unused). * aclocal/check-newlib.m4: Adaptation to autoconf-2.5x (AC_TRY_LINK is announced obsolete). --- ChangeLog | 6 ++++++ aclocal/check-newlib.m4 | 19 +++++++++---------- automake/compile.am | 5 +---- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe5a3a7c32..30d32b93a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-11-19 Ralf Corsepius + + * automake/compile.am: Remove LD_PATHS (Unused). + * aclocal/check-newlib.m4: Adaptation to autoconf-2.5x (AC_TRY_LINK + is announced obsolete). + 2002-11-19 Ralf Corsepius * Makefile.am: Reflect having removed aclocal/sysv-ipc.m4. diff --git a/aclocal/check-newlib.m4 b/aclocal/check-newlib.m4 index a26624702e..e80755d462 100644 --- a/aclocal/check-newlib.m4 +++ b/aclocal/check-newlib.m4 @@ -8,19 +8,18 @@ AC_CACHE_CHECK([for RTEMS newlib], rtems_cv_use_newlib, [ dnl some versions of newlib provide not_required_by_rtems - AC_TRY_LINK( - [extern void not_required_by_rtems() ;], - [not_required_by_rtems()], - rtems_cv_use_newlib="yes") + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[extern void not_required_by_rtems() ;]], + [[not_required_by_rtems()]])], + [rtems_cv_use_newlib="yes"],[]) dnl some versions of newlib provide rtems_provides_crt0() AS_IF([test -z "$rtems_cv_use_newlib"], - [AC_TRY_LINK( - [extern void rtems_provides_crt0() ;], - [rtems_provides_crt0()], - rtems_cv_use_newlib="yes", - rtems_cv_use_newlib="no")] - ) + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[extern void rtems_provides_crt0() ;]], + [[rtems_provides_crt0()]])], + [rtems_cv_use_newlib="yes"],[rtems_cv_use_newlib="no"]) + ]) ]) RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" AC_SUBST(RTEMS_USE_NEWLIB) diff --git a/automake/compile.am b/automake/compile.am index 52fde829ac..fb8015fb1b 100644 --- a/automake/compile.am +++ b/automake/compile.am @@ -66,14 +66,11 @@ CFLAGS_PROFILE_V=-pg CXXFLAGS_PROFILE_V=-pg LDFLAGS_PROFILE_V = -# List of library paths without -L -LD_PATHS= $(PROJECT_RELEASE)/lib - # ld flag for incomplete link LDFLAGS_INCOMPLETE = -r # ld flags for profiling, debugging -LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %) +LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) # # Client compiler and support tools -- cgit v1.2.3