diff options
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) | |||
| 29 | CPPFLAGS_$(d) += -DOPENSSL_NO_EC | 29 | CPPFLAGS_$(d) += -DOPENSSL_NO_EC |
| 30 | endif | 30 | endif |
| 31 | 31 | ||
| 32 | LDFLAGS_$(d) += -lssl -lcrypto -lpthread -ldl | 32 | LDFLAGS_$(d) += -lssl -lcrypto -lpthread |
| 33 | |||
| 34 | # NetBSD, FreeBSD, OpenBSD (and presumably descendants) lack any libdl; | ||
| 35 | # dlopen, et al are part of libc. | ||
| 36 | ifneq ($(patsubst %BSD,BSD,$(OS_$(d))), BSD) | ||
| 37 | LDFLAGS_$(d) += -ldl | ||
| 38 | endif | ||
| 39 | |||
| 33 | 40 | ||
| 34 | # | 41 | # |
| 35 | # C O M P I L A T I O N R U L E S | 42 | # C O M P I L A T I O N R U L E S |
