summaryrefslogtreecommitdiffstats
path: root/Makefile.shared
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2006-10-21 15:38:16 +0200
committerAndy Polyakov <appro@openssl.org>2006-10-21 15:38:16 +0200
commitcbfb39d1be669aefe4c2dc3b3256f71fd0bd1266 (patch)
treec833b6d237983d212f67d456f3df95455b80d0d2 /Makefile.shared
parentAlign data payload for better performance. (diff)
downloadopenssl-cbfb39d1be669aefe4c2dc3b3256f71fd0bd1266.tar.xz
openssl-cbfb39d1be669aefe4c2dc3b3256f71fd0bd1266.zip
Rudimentary support for cross-compiling.
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.shared b/Makefile.shared
index 465c258d6a..92d50e01aa 100644
--- a/Makefile.shared
+++ b/Makefile.shared
@@ -14,6 +14,8 @@ CFLAGS=$(CFLAG)
LDFLAGS=
SHARED_LDFLAGS=
+NM=nm
+
# LIBNAME contains just the name of the library, without prefix ("lib"
# on Unix, "cyg" for certain forms under Cygwin...) or suffix (.a, .so,
# .dll, ...). This one MUST have a value when using this makefile to
@@ -101,7 +103,7 @@ LINK_SO= \
LIBDEPS="$${LIBDEPS:-$(LIBDEPS)}"; \
SHAREDCMD="$${SHAREDCMD:-$(CC)}"; \
SHAREDFLAGS="$${SHAREDFLAGS:-$(CFLAGS) $(SHARED_LDFLAGS)}"; \
- nm -Pg $$SHOBJECTS | grep ' [BDT] ' | cut -f1 -d' ' > lib$(LIBNAME).exp; \
+ $(NM) -Pg $$SHOBJECTS | grep ' [BDT] ' | cut -f1 -d' ' > lib$(LIBNAME).exp; \
LIBPATH=`for x in $$LIBDEPS; do if echo $$x | grep '^ *-L' > /dev/null 2>&1; then echo $$x | sed -e 's/^ *-L//'; fi; done | uniq`; \
LIBPATH=`echo $$LIBPATH | sed -e 's/ /:/g'`; \
LD_LIBRARY_PATH=$$LIBPATH:$$LD_LIBRARY_PATH \