treewide: quote CC and CXX
authorPaul Fertser <fercerpav@gmail.com>
Fri, 20 Jan 2023 14:54:59 +0000 (14:54 +0000)
committerRosen Penev <rosenp@gmail.com>
Sat, 21 Jan 2023 01:44:14 +0000 (17:44 -0800)
When CC is set to e.g. "ccache mips-openwrt-linux-musl-gcc" it needs
to be quoted to avoid word splitting on substitution.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
lang/chicken-scheme/Makefile
libs/liburing/Makefile
libs/pcapplusplus/Makefile
net/isc-dhcp/Makefile
net/isc-dhcp/patches/510-bind-CC.patch
net/isc-dhcp/patches/520-bind-no-catgets.patch
utils/ctop/Makefile

index 79917fa5e402ade2220cd09cc8c4ddb6498261aa..c7fb98da20680f411c4f5ce79b2052644698ba9d 100644 (file)
@@ -49,7 +49,7 @@ define Package/chicken-scheme-interpreter/description
   For more information, please refer to the Chicken Scheme website at https://call-cc.org.
 endef
 
-MAKE_FLAGS += PLATFORM=linux C_COMPILER=$(TARGET_CC) LINKER=$(TARGET_CC) PREFIX=/usr C_COMPILER_OPTIMIZATION_OPTIONS="$(TARGET_CFLAGS)"
+MAKE_FLAGS += PLATFORM=linux C_COMPILER="$(TARGET_CC)" LINKER="$(TARGET_CC)" PREFIX=/usr C_COMPILER_OPTIMIZATION_OPTIONS="$(TARGET_CFLAGS)"
 
 # not installed:
 # - csc and chicken, the compiler
index 6eb84b18d88590d1434c266d04ccdb948ad4a0ac..445e535adc1c4efca06d9cf0c46cb89385f62798 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=liburing
 PKG_VERSION:=2.3
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://git.kernel.dk/cgit/liburing/snapshot
@@ -32,7 +32,7 @@ define Package/liburing/description
   For more info on io_uring, please see: https://kernel.dk/io_uring.pdf
 endef
 
-CONFIGURE_ARGS:=--prefix=$(CONFIGURE_PREFIX) --cc=${TARGET_CC}
+CONFIGURE_ARGS:=--prefix=$(CONFIGURE_PREFIX) --cc="${TARGET_CC}"
 
 define Build/Compile
        $(MAKE) $(PKG_BUILD_DIR) \
index af44583a103e340b0107871c5aa99def23a79203..63d52f1a4dc21b1002d225743555c2bf07fb1eb1 100644 (file)
@@ -32,7 +32,7 @@ endef
 
 define Build/Compile
        cd $(PKG_BUILD_DIR)/PcapPlusPlus; ./configure-linux.sh --install-dir /usr
-       make -C $(PKG_BUILD_DIR)/PcapPlusPlus CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC" CFLAGS="$(TARGET_CFLAGS) -fPIC" CXX=$(TARGET_CXX) CC=$(TARGET_CC) AR=$(TARGET_AR) libs
+       make -C $(PKG_BUILD_DIR)/PcapPlusPlus CXXFLAGS="$(TARGET_CXXFLAGS) -fPIC" CFLAGS="$(TARGET_CFLAGS) -fPIC" CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" AR=$(TARGET_AR) libs
 endef
 
 define Build/InstallDev
index 9f2b0555ed873717525e6d58ed8f7561ca04a407..2c6dd442be7cde643e7967bb9a58564666608841 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=isc-dhcp
 UPSTREAM_NAME:=dhcp
 PKG_VERSION:=4.4.3
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=6
 
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
index dcee7593c44fe0792928a067dcbce0c1a58a4453..bbbd949f0cc3b51806ee287904b48973ed2a70e1 100644 (file)
@@ -5,7 +5,7 @@
                rm -rf ${cleandirs} ${cleanfiles} ;                     \
                (cd ${bindsrcdir} &&                                    \
 -                 ./configure ${bindconfig} > ${binddir}/configure.log); \
-+               export CC=${CROSS_CC} AR=${TARGET_AR} RANLIB=${TARGET_RANLIB} && \
++               export CC="${CROSS_CC}" AR=${TARGET_AR} RANLIB=${TARGET_RANLIB} && \
 +                ./configure ${bindconfig} --disable-atomic             \
 +               --disable-kqueue --disable-epoll --disable-kqueue      \
 +                --disable-epoll --disable-devpoll --without-openssl    \
index bd956032cd83ae7bd0b06d79b8a70167adaeaebe..fbd4d5dc4f52da47366551d95e18dceddab4752c 100644 (file)
@@ -3,7 +3,7 @@
 @@ -57,6 +57,7 @@ bind1:
                rm -rf ${cleandirs} ${cleanfiles} ;                     \
                (cd ${bindsrcdir} &&                                    \
-                export CC=${CROSS_CC} AR=${TARGET_AR} RANLIB=${TARGET_RANLIB} && \
+                export CC="${CROSS_CC}" AR=${TARGET_AR} RANLIB=${TARGET_RANLIB} && \
 +               ac_cv_func_catgets=no                                  \
                  ./configure ${bindconfig} --disable-atomic             \
                 --disable-kqueue --disable-epoll --disable-kqueue      \
index 69268008b7ee35bbfd37a6504c8e4ff41d2fa296..65180fad6ba11bc25f9f7588364ff4cdbff62a3f 100644 (file)
@@ -38,8 +38,8 @@ MAKE_VARS += \
        GOPATH=$(GO_PKG_BUILD_DIR) \
        GOCACHE=$(GO_BUILD_CACHE_DIR) \
        GOROOT_FINAL=$(GO_TARGET_ROOT) \
-       CC=$(TARGET_CC) \
-       CXX=$(TARGET_CXX) \
+       CC="$(TARGET_CC)" \
+       CXX="$(TARGET_CXX)" \
        $(GO_PKG_VARS)
 MAKE_FLAGS += \
        COMMIT=$(PKG_SOURCE_VERSION)