defs.mk, rules.mk: Auto-generate NEW_LD_LIB_PATH

Add (experimental) NEW_LD_LIB_PATH automatically generated from
LDFLAGS.
This commit is contained in:
Jan Lindemann 2007-07-03 13:36:59 +00:00 committed by Jan Lindemann
commit f4e5d2f12b
2 changed files with 4 additions and 0 deletions

View file

@ -410,3 +410,6 @@ endif
#export PROJECT PROJECT_CFLAGS PROJECT_CPPFLAGS PROJECT_LDFLAGS USE_TIMER
NEW_LD_LIB_PATH = $(shell echo $(LDFLAGS) | sed 's/-[^L][^ ]*//g; s/-L[ ]*\([^ ]*\)[ ]*/\1:/g')

View file

@ -315,6 +315,7 @@ echo-development:
echo-libpath:
@echo LD_LIBRARY_PATH = $(LD_LIBRARY_PATH)
@echo NEW_LD_LIB_PATH = $(NEW_LD_LIB_PATH)
trace-marks:
for f in $(ALL_CPP); do \