component(developer/golang-123): Add Component
[oi-userland.git] / components / runtime / wine / patches / 05-configure_fPIC.patch
blob9c0f4c15dcafa8af6eae86cad32ae591d7a88594
1 --- wine-4.17/configure.orig 2022-08-18 09:20:50.879757659 +0000
2 +++ wine-4.17/configure 2022-08-18 09:23:59.929503472 +0000
3 @@ -9298,13 +9298,19 @@
4 ;;
6 *)
7 - case $host_cpu in
8 - *i[3456789]86*)
9 - DLLFLAGS="$DLLFLAGS -fno-PIC"
10 - LDDLLFLAGS="-fno-PIC" ;;
11 - *)
12 + case $host_os in
13 + solaris2*)
14 DLLFLAGS="$DLLFLAGS -fPIC"
15 LDDLLFLAGS="-fPIC" ;;
16 + *)
17 + case $host_cpu in
18 + *i[3456789]86*)
19 + DLLFLAGS="$DLLFLAGS -fno-PIC"
20 + LDDLLFLAGS="-fno-PIC" ;;
21 + *)
22 + DLLFLAGS="$DLLFLAGS -fPIC"
23 + LDDLLFLAGS="-fPIC" ;;
24 + esac ;;
25 esac
26 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
27 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }