mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-21 08:40:36 +01:00
Don't use -fPIC and -fPIE on Windows
The MinGW compiler recognizes them but emits a warning "-fPIC ignored for target (all code is position independent)"
This commit is contained in:
parent
7b29b5dee7
commit
eab064cfc4
1 changed files with 2 additions and 2 deletions
|
|
@ -1093,7 +1093,7 @@ if test "x$GCC" = "xyes"; then
|
|||
|
||||
case " $CFLAGS " in
|
||||
*[\ \ ]-fPIC[\ \ ]*) ;;
|
||||
*) if cc_supports_flag -fPIC; then
|
||||
*) if test x$dbus_win = xno && cc_supports_flag -fPIC; then
|
||||
PIC_CFLAGS="-fPIC"
|
||||
if ld_supports_flag -z,relro; then
|
||||
PIC_LDFLAGS="-Wl,-z,relro"
|
||||
|
|
@ -1104,7 +1104,7 @@ if test "x$GCC" = "xyes"; then
|
|||
|
||||
case " $CFLAGS " in
|
||||
*[\ \ ]-fPIE[\ \ ]*) ;;
|
||||
*) if cc_supports_flag -fPIE; then
|
||||
*) if test x$dbus_win = xno && cc_supports_flag -fPIE; then
|
||||
PIE_CFLAGS="-fPIE"
|
||||
if ld_supports_flag -z,relro; then
|
||||
PIE_LDFLAGS="-pie -Wl,-z,relro"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue