Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ac14ce8c
Commit
ac14ce8c
authored
Feb 05, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Silence a linker warning about no-PIC .text relocations.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8f1122f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
configure
configure
+27
-1
configure.ac
configure.ac
+3
-1
No files found.
configure
View file @
ac14ce8c
...
...
@@ -9274,7 +9274,33 @@ fi
case
$host_cpu
in
*
i[3456789]86
*
)
DLLFLAGS
=
"
$DLLFLAGS
-fno-PIC"
LDDLLFLAGS
=
"-fno-PIC"
;;
LDDLLFLAGS
=
"-fno-PIC"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fno-PIC -Wl,-z,notext"
>
&5
$as_echo_n
"checking whether the compiler supports -fno-PIC -Wl,-z,notext... "
>
&6
;
}
if
${
ac_cv_cflags__fno_PIC__Wl__z_notext
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fno-PIC -Wl,-z,notext"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__fno_PIC__Wl__z_notext
=
yes
else
ac_cv_cflags__fno_PIC__Wl__z_notext
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__fno_PIC__Wl__z_notext
"
>
&5
$as_echo
"
$ac_cv_cflags__fno_PIC__Wl__z_notext
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__fno_PIC__Wl__z_notext
"
=
xyes
;
then
:
LDDLLFLAGS
=
"
$LDDLLFLAGS
-Wl,-z,notext"
fi
;;
*
)
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
LDDLLFLAGS
=
"-fPIC"
;;
...
...
configure.ac
View file @
ac14ce8c
...
...
@@ -912,7 +912,9 @@ case $host_os in
case $host_cpu in
*i[[3456789]]86*)
DLLFLAGS="$DLLFLAGS -fno-PIC"
LDDLLFLAGS="-fno-PIC" ;;
LDDLLFLAGS="-fno-PIC"
WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
;;
*)
DLLFLAGS="$DLLFLAGS -fPIC"
LDDLLFLAGS="-fPIC" ;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment