Clang doesn't like -znodelete, make it a linker flag instead
authorRichard Levitte <levitte@openssl.org>
Thu, 3 Nov 2016 14:26:00 +0000 (15:26 +0100)
committerRichard Levitte <richard@levitte.org>
Thu, 3 Nov 2016 14:36:31 +0000 (15:36 +0100)
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 <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1836)
(cherry picked from commit 075e9da055454ec5586962b43d9923e44bdcb313)

Configurations/10-main.conf

index c80d02f27a93953210cad54f4e84178e401f76a8..ffa5d38d4b54be05a80699a55c67e648ab9d8612 100644 (file)
@@ -632,7 +632,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" => {