diff options
author | William Ahern <william@25thandClement.com> | 2013-07-20 00:29:03 -0700 |
---|---|---|
committer | William Ahern <william@25thandClement.com> | 2013-07-20 00:29:03 -0700 |
commit | 369fa2d4120b1dc1a63d0a743203695b0325b888 (patch) | |
tree | e7c5e406d71cc2d00ac6f42864c2eb6f3aa194fb /src | |
parent | cf2e538345a9d7517b35ed8b7852a3e785396c45 (diff) | |
download | luaossl-369fa2d4120b1dc1a63d0a743203695b0325b888.tar.gz luaossl-369fa2d4120b1dc1a63d0a743203695b0325b888.tar.bz2 luaossl-369fa2d4120b1dc1a63d0a743203695b0325b888.zip |
don't use -ldl on BSDs
Diffstat (limited to 'src')
-rw-r--r-- | src/GNUmakefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile index 76f045b..99b2336 100644 --- a/src/GNUmakefile +++ b/src/GNUmakefile @@ -29,7 +29,14 @@ ifeq ($(CC_$(d)), sunpro) CPPFLAGS_$(d) += -DOPENSSL_NO_EC endif -LDFLAGS_$(d) += -lssl -lcrypto -lpthread -ldl +LDFLAGS_$(d) += -lssl -lcrypto -lpthread + +# NetBSD, FreeBSD, OpenBSD (and presumably descendants) lack any libdl; +# dlopen, et al are part of libc. +ifneq ($(patsubst %BSD,BSD,$(OS_$(d))), BSD) +LDFLAGS_$(d) += -ldl +endif + # # C O M P I L A T I O N R U L E S |