From b643477cca198f213c34c4ced54ef54cb34444e3 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 23 Nov 2024 18:33:34 +1300 Subject: [PATCH] cflags: remove -fPIC from all cflags --- cmd/handbindings/binding.go | 1 - qt/cbor/cflags.go | 2 +- qt/cflags.go | 2 +- qt/multimedia/cflags.go | 2 +- qt/network/cflags.go | 2 +- qt/printsupport/cflags.go | 1 - qt6/cbor/cflags.go | 1 - qt6/cflags.go | 1 - qt6/multimedia/cflags.go | 1 - qt6/network/cflags.go | 1 - qt6/printsupport/cflags.go | 1 - qt6/spatialaudio/cflags.go | 1 - 12 files changed, 4 insertions(+), 12 deletions(-) diff --git a/cmd/handbindings/binding.go b/cmd/handbindings/binding.go index 16d05e44..5af119f1 100644 --- a/cmd/handbindings/binding.go +++ b/cmd/handbindings/binding.go @@ -2,7 +2,6 @@ package main /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt5Widgets #include "binding.h" diff --git a/qt/cbor/cflags.go b/qt/cbor/cflags.go index 0c326444..55521b7e 100644 --- a/qt/cbor/cflags.go +++ b/qt/cbor/cflags.go @@ -2,7 +2,7 @@ package cbor /* #cgo CXXFLAGS: -std=c++11 -#cgo CFLAGS: -std=gnu11 -fPIC +#cgo CFLAGS: -std=gnu11 #cgo pkg-config: Qt5Core */ import "C" diff --git a/qt/cflags.go b/qt/cflags.go index 27de3be3..696a7616 100644 --- a/qt/cflags.go +++ b/qt/cflags.go @@ -2,7 +2,7 @@ package qt /* #cgo CXXFLAGS: -std=c++11 -#cgo CFLAGS: -std=gnu11 -fPIC +#cgo CFLAGS: -std=gnu11 #cgo pkg-config: Qt5Widgets */ import "C" diff --git a/qt/multimedia/cflags.go b/qt/multimedia/cflags.go index e2f6f0f9..15abb4e6 100644 --- a/qt/multimedia/cflags.go +++ b/qt/multimedia/cflags.go @@ -2,7 +2,7 @@ package multimedia /* #cgo CXXFLAGS: -std=c++11 -#cgo CFLAGS: -std=gnu11 -fPIC +#cgo CFLAGS: -std=gnu11 #cgo pkg-config: Qt5MultimediaWidgets */ import "C" diff --git a/qt/network/cflags.go b/qt/network/cflags.go index acbc0c20..d82a86cb 100644 --- a/qt/network/cflags.go +++ b/qt/network/cflags.go @@ -2,7 +2,7 @@ package network /* #cgo CXXFLAGS: -std=c++11 -#cgo CFLAGS: -std=gnu11 -fPIC +#cgo CFLAGS: -std=gnu11 #cgo pkg-config: Qt5Network */ import "C" diff --git a/qt/printsupport/cflags.go b/qt/printsupport/cflags.go index db88bf07..9781b75b 100644 --- a/qt/printsupport/cflags.go +++ b/qt/printsupport/cflags.go @@ -1,7 +1,6 @@ package printsupport /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt5PrintSupport */ import "C" diff --git a/qt6/cbor/cflags.go b/qt6/cbor/cflags.go index e1e55d76..1742dc87 100644 --- a/qt6/cbor/cflags.go +++ b/qt6/cbor/cflags.go @@ -1,7 +1,6 @@ package cbor /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6Core */ import "C" diff --git a/qt6/cflags.go b/qt6/cflags.go index 72615143..bdfc5344 100644 --- a/qt6/cflags.go +++ b/qt6/cflags.go @@ -1,7 +1,6 @@ package qt6 /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6Widgets */ import "C" diff --git a/qt6/multimedia/cflags.go b/qt6/multimedia/cflags.go index 0ee9daa0..e17468ab 100644 --- a/qt6/multimedia/cflags.go +++ b/qt6/multimedia/cflags.go @@ -1,7 +1,6 @@ package multimedia /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6MultimediaWidgets */ import "C" diff --git a/qt6/network/cflags.go b/qt6/network/cflags.go index 4f3acb96..43683141 100644 --- a/qt6/network/cflags.go +++ b/qt6/network/cflags.go @@ -1,7 +1,6 @@ package qt6 /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6Network */ import "C" diff --git a/qt6/printsupport/cflags.go b/qt6/printsupport/cflags.go index f2df1089..91dfe3fa 100644 --- a/qt6/printsupport/cflags.go +++ b/qt6/printsupport/cflags.go @@ -1,7 +1,6 @@ package printsupport /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6PrintSupport */ import "C" diff --git a/qt6/spatialaudio/cflags.go b/qt6/spatialaudio/cflags.go index c58a2d09..ec01d583 100644 --- a/qt6/spatialaudio/cflags.go +++ b/qt6/spatialaudio/cflags.go @@ -1,7 +1,6 @@ package spatialaudio /* -#cgo CFLAGS: -fPIC #cgo pkg-config: Qt6SpatialAudio */ import "C"