Skip to contentSkip to conversation

package/mosquitto: disable -fPIC compile option

PATCH New Peter Seiderer 1 participant 1 message Nov 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mosquitto: disable -fPIC compile option

- add hack/patch to disable '-fPIC' compile option (for BINFMT_FLAT)

---
 package/mosquitto/0001-disable-fpic.patch | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 package/mosquitto/0001-disable-fpic.patch
package/mosquitto/0001-disable-fpic.patch new file +15 -0
new file mode 100644
index 0000000000..a9df4c4435
@@ -0,0 +1,15 @@
+diff --git a/config.mk b/config.mk
+index 80e02f9..67c2891 100644
+--- a/config.mk
++++ b/config.mk
+@@ -187,8 +187,8 @@ ifeq ($(UNAME),SunOS)
+ 		LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC
+ 	endif
+ else
+-	LIB_CFLAGS:=$(LIB_CFLAGS) -fPIC
+-	LIB_CXXFLAGS:=$(LIB_CXXFLAGS) -fPIC
++	LIB_CFLAGS:=$(LIB_CFLAGS)
++	LIB_CXXFLAGS:=$(LIB_CXXFLAGS)
+ endif
+ 
+ ifneq ($(UNAME),SunOS)
Signature · 1 line
2.29.1