summaryrefslogtreecommitdiffstats
path: root/Makefile.shared
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-02-22 14:41:34 +0000
committerRichard Levitte <levitte@openssl.org>2003-02-22 14:41:34 +0000
commit132eaa59dafcc36b513ab081b9f76a49e2525cc6 (patch)
tree448498f64db7e1a36fc93f1baa9db2847d28d5ed /Makefile.shared
parent5562cfaca4f3a007ce7e322f98e7ef57835771a7 (diff)
Allow building applications against static libraries with Makefile.shared.
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.shared b/Makefile.shared
index 9178b829a2..e33c10b5ae 100644
--- a/Makefile.shared
+++ b/Makefile.shared
@@ -141,6 +141,18 @@ DO_GNU_APP=LDCMD=$(CC);\
LIBDEPS="$(LIBDEPS) -lc"; \
APPNAME=$(APPNAME)
+#This is rather special. It's a special target with which one can link
+#applications without bothering with any features that have anything to
+#do with shared libraries, for example when linking against static
+#libraries. It's mostly here to avoid a lot of conditionals everywhere
+#else...
+link_app.:
+ LDCMD=$(CC); \
+ LDFLAGS=""; \
+ LIBDEPS="$(LIBDEPS)"; \
+ APPNAME="$(APPNAME)"; \
+ $(LINK_APP)
+
link_o.gnu:
@ $(DO_GNU_SO); $(LINK_SO_O)
link_a.gnu: