Browse Source

configure: Don't add -fPIC to cflags for target_os=win32

We skipped adding it to cflags for mingw/cygwin configurations
where the compiler either complains loudly or even errors out;
do the same for target_os=win32, for the case when building with
clang in msvc mode.

This wasn't needed for the actual msvc before, since msvc uses
msvc_common_flags to filter out this flag from cflags.
When building with clang in msvc mode, no such filter is used.

This fixes building shared libraries with clang in msvc mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n4.0
Martin Storsjö 8 years ago
parent
commit
f951837ce5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      configure

+ 1
- 1
configure View File

@@ -4215,7 +4215,7 @@ enable_weak_pic() {
enable pic
add_cppflags -DPIC
case "$target_os" in
mingw*|cygwin*)
mingw*|cygwin*|win*)
;;
*)
add_cflags -fPIC


Loading…
Cancel
Save