SERVICES = openvmtools
# Fix build with GCC 15
-CFLAGS += -std=gnu17 -Wno-error=array-bounds
+CFLAGS += -std=gnu17 -Wno-error=array-bounds -Wno-error=discarded-qualifiers
###############################################################################
# Top-level Rules
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && sed -i '/^void g_free(/i #undef g_free' lib/rpcChannel/glib_stubs.c
+ cd $(DIR_APP) && sed -i '/^void \*g_malloc(/i #undef g_malloc' lib/rpcChannel/glib_stubs.c
+ cd $(DIR_APP) && sed -i '/^void \*g_malloc0(/i #undef g_malloc0' lib/rpcChannel/glib_stubs.c
+ cd $(DIR_APP) && sed -i '/^void \*g_realloc(/i #undef g_realloc' lib/rpcChannel/glib_stubs.c
+ cd $(DIR_APP) && sed -i '/^char \*g_strdup(/i #undef g_strdup' lib/rpcChannel/glib_stubs.c
cd $(DIR_APP) && autoreconf -vfi
cd $(DIR_APP) && ./configure \
--prefix=/usr \