From: Richard Levitte Date: Thu, 3 Nov 2016 14:26:00 +0000 (+0100) Subject: Clang doesn't like -znodelete, make it a linker flag instead X-Git-Tag: OpenSSL_1_1_1-pre1~3259 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=075e9da055454ec5586962b43d9923e44bdcb313;p=oweals%2Fopenssl.git Clang doesn't like -znodelete, make it a linker flag instead gcc is kinder, it silently passes quite a few flags to ld, while clang is stricter and wants them prefixed with -Wl, Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/1836) --- diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index b77efbff51..4c6598444d 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -633,7 +633,7 @@ sub vms_info { dso_scheme => "dlfcn", shared_target => "linux-shared", shared_cflag => "-fPIC -DOPENSSL_USE_NODELETE", - shared_ldflag => "-znodelete", + shared_ldflag => "-Wl,-znodelete", shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", }, "linux-generic64" => {