diff options
author | Andy Polyakov <appro@openssl.org> | 2009-01-02 09:02:27 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2009-01-02 09:02:27 +0000 |
commit | ab4d68983297988bfd9340f738b6183639739e7d (patch) | |
tree | 5b8e20d964edfc6febbd7fa54fb91071fb991402 | |
parent | 23b973e600550541fc942eee3030f124862dcc68 (diff) | |
download | openssl-ab4d68983297988bfd9340f738b6183639739e7d.tar.gz |
Makefile.shared: improve portability of commit#17753.
-rw-r--r-- | Makefile.shared | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.shared b/Makefile.shared index f30ead1927..adf7d4ec3f 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -93,7 +93,7 @@ LINK_APP= \ ( $(SET_X); \ LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \ LDCMD="$${LDCMD:-$(CC)}"; LDFLAGS="$${LDFLAGS:-$(CFLAGS)}"; \ - LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t;d' | uniq`; \ + LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \ LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \ LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \ $${LDCMD} $${LDFLAGS} -o $${APPNAME:=$(APPNAME)} $(OBJECTS) $${LIBDEPS} ) @@ -103,7 +103,7 @@ LINK_SO= \ LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \ SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \ SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \ - LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t;d' | uniq`; \ + LIBPATH=`for x in $$LIBDEPS; do echo $$x; done | sed -e 's/^ *-L//;t' -e d | uniq`; \ LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \ LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \ $${SHAREDCMD} $${SHAREDFLAGS} \ |