1 diff -aur orig/buildSrc/linux.gradle patched/buildSrc/linux.gradle
2 --- orig/buildSrc/linux.gradle 2022-05-25 14:11:20.000000000 +0200
3 +++ patched/buildSrc/linux.gradle 2022-07-22 12:45:39.164493724 +0200
6 "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
8 + "-Wno-error=cast-function-type",
9 "-Wextra", "-Wall", "-Wformat-security", "-Wno-unused", "-Wno-parentheses", "-Werror=trampolines"] // warning flags
11 +commonFlags.addAll(System.getenv("CFLAGS").trim().replaceAll(" +", " ").split(" "))
18 def linkFlags = IS_STATIC_BUILD ? staticLinkFlags : dynamicLinkFlags;
20 +linkFlags.addAll(System.getenv("LDFLAGS").trim().split(" "))
22 if (IS_DEBUG_NATIVE) {
26 LINUX.iio.compiler = compiler
27 LINUX.iio.ccFlags = [cFlags, "-fvisibility=hidden"].flatten()
28 LINUX.iio.linker = IS_STATIC_BUILD ? "ld" : linker
29 -LINUX.iio.linkFlags = [linkFlags].flatten()
30 +LINUX.iio.linkFlags = [linkFlags, "-ljpeg"].flatten()
31 LINUX.iio.lib = "javafx_iio"
36 LINUX.webkit.compiler = compiler
37 LINUX.webkit.linker = linker
38 -LINUX.webkit.ccFlags = commonFlags.flatten()
39 +LINUX.webkit.ccFlags = [commonFlags, "-fno-lto"].flatten()
40 LINUX.webkit.linkFlags = linkFlags.flatten()
41 diff -aur orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
42 --- orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 2022-05-25 14:11:20.000000000 +0200
43 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 2022-07-22 12:45:39.167827045 +0200
45 OBJBASE_DIR = $(BUILD_DIR)/obj/plugins/avplugin
55 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
57 - -ffunction-sections -fdata-sections
59 -ifeq ($(BUILD_TYPE), Release)
64 + -ffunction-sections -fdata-sections \
67 PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0)
68 PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0)
70 -I../../../gstreamer-lite/gstreamer/libs \
73 -LDFLAGS = -L$(BUILD_DIR) \
74 +LDFLAGS := -L$(BUILD_DIR) \
78 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
79 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
82 ifneq ($(strip $(LIBAV_DIR)),)
83 INCLUDES += -I$(LIBAV_DIR)/include
84 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin: Makefile.orig
85 diff -aur orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
86 --- orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 2022-05-25 14:11:20.000000000 +0200
87 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 2022-07-22 12:45:39.167827045 +0200
90 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
99 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
100 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
101 - -ffunction-sections -fdata-sections
103 -ifeq ($(BUILD_TYPE), Release)
109 + -ffunction-sections -fdata-sections \
112 INCLUDES = -I$(SRCBASE_DIR) \
113 $(addprefix -I$(SRCBASE_DIR)/,$(DIRLIST)) \
115 PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0)
116 PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0)
118 -LDFLAGS = -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
119 +LDFLAGS := -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
121 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
122 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
127 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins: Makefile.orig
128 diff -aur orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
129 --- orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 2022-05-25 14:11:20.000000000 +0200
130 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 2022-07-22 12:45:39.167827045 +0200
133 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
141 -DGST_DISABLE_LOADSAVE \
142 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
143 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
144 - -ffunction-sections -fdata-sections
146 -ifeq ($(BUILD_TYPE), Release)
151 + -ffunction-sections -fdata-sections \
154 INCLUDES = -I$(BASE_DIR)/plugins \
155 -I$(SRCBASE_DIR)/projects/build/linux/common \
157 PACKAGES_INCLUDES := $(shell pkg-config --cflags alsa glib-2.0)
158 PACKAGES_LIBS := $(shell pkg-config --libs alsa glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0)
160 -LDFLAGS = -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \
161 +LDFLAGS := -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \
163 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
164 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
169 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite: Makefile.orig
170 diff -aur orig/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile patched/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
171 --- orig/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 2022-05-25 14:11:20.000000000 +0200
172 +++ patched/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 2022-07-22 12:45:39.167827045 +0200
175 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
177 -CFLAGS = -DTARGET_OS_LINUX=1 \
178 +CFLAGS := -DTARGET_OS_LINUX=1 \
180 -DGST_REMOVE_DEPRECATED \
181 -DGST_DISABLE_GST_DEBUG \
183 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
184 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
185 -Werror=deprecated-declarations \
186 - -ffunction-sections -fdata-sections
187 + -ffunction-sections -fdata-sections \
190 CPPFLAGS = -fno-rtti -ffunction-sections -fdata-sections
193 -I$(GSTREAMER_LITE_DIR)/gstreamer/libs \
196 - LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
197 + LDFLAGS := -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
199 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
200 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
203 CFLAGS += $(EXTRA_CFLAGS)
204 INCLUDES = $(BASE_INCLUDES)
205 LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) $(EXTRA_LDFLAGS)
208 -ifeq ($(BUILD_TYPE), Release)
211 - CFLAGS += -g -Wall -D_DEBUG
217 Only in patched/modules/javafx.media/src/main/native/jfxmedia/projects/linux: Makefile.orig