1 diff -aur orig/buildSrc/linux.gradle patched/buildSrc/linux.gradle
2 --- orig/buildSrc/linux.gradle 2022-07-12 13:56:53.000000000 +0200
3 +++ patched/buildSrc/linux.gradle 2022-07-20 15:58:16.621288214 +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(" "))
17 def staticLinkFlags = [].flatten()
19 def linkFlags = IS_STATIC_BUILD ? staticLinkFlags : dynamicLinkFlags;
20 +linkFlags.addAll(System.getenv("LDFLAGS").trim().split(" "))
22 if (IS_DEBUG_NATIVE) {
25 LINUX.iio.compiler = compiler
26 LINUX.iio.ccFlags = [cFlags, "-fvisibility=hidden"].flatten()
27 LINUX.iio.linker = IS_STATIC_BUILD ? "ld" : linker
28 -LINUX.iio.linkFlags = [linkFlags].flatten()
29 +LINUX.iio.linkFlags = [linkFlags, "-ljpeg"].flatten()
30 LINUX.iio.lib = "javafx_iio"
35 LINUX.webkit.compiler = compiler
36 LINUX.webkit.linker = linker
37 -LINUX.webkit.ccFlags = commonFlags.flatten()
38 +LINUX.webkit.ccFlags = [commonFlags, "-fno-lto"].flatten()
39 LINUX.webkit.linkFlags = linkFlags.flatten()
40 Only in patched/buildSrc: linux.gradle.orig
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-07-12 13:56:53.000000000 +0200
43 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile 2022-07-20 15:58:16.621288214 +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
58 + -ffunction-sections -fdata-sections \
61 ifneq ($(ARCH), aarch64)
65 -ifeq ($(BUILD_TYPE), Release)
71 PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0)
72 PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0)
74 -I../../../gstreamer-lite/gstreamer/libs \
77 -LDFLAGS = -L$(BUILD_DIR) \
78 +LDFLAGS := -L$(BUILD_DIR) \
82 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
83 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
86 ifneq ($(strip $(LIBAV_DIR)),)
87 INCLUDES += -I$(LIBAV_DIR)/include
88 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin: Makefile.orig
89 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
90 --- orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 2022-07-12 13:56:53.000000000 +0200
91 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile 2022-07-20 15:58:16.621288214 +0200
94 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
103 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
104 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
105 - -ffunction-sections -fdata-sections
106 + -ffunction-sections -fdata-sections \
109 ifneq ($(ARCH), aarch64)
113 -ifeq ($(BUILD_TYPE), Release)
120 INCLUDES = -I$(SRCBASE_DIR) \
121 $(addprefix -I$(SRCBASE_DIR)/,$(DIRLIST)) \
123 PACKAGES_INCLUDES := $(shell pkg-config --cflags glib-2.0)
124 PACKAGES_LIBS := $(shell pkg-config --libs glib-2.0 gobject-2.0)
126 -LDFLAGS = -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
127 +LDFLAGS := -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
129 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
130 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
135 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/fxplugins: Makefile.orig
136 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
137 --- orig/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 2022-07-12 13:56:53.000000000 +0200
138 +++ patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile 2022-07-20 15:58:16.624621629 +0200
141 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
149 -DGST_DISABLE_LOADSAVE \
150 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
151 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
152 - -ffunction-sections -fdata-sections
154 -ifeq ($(BUILD_TYPE), Release)
159 + -ffunction-sections -fdata-sections \
162 INCLUDES = -I$(BASE_DIR)/plugins \
163 -I$(SRCBASE_DIR)/projects/build/linux/common \
165 PACKAGES_INCLUDES := $(shell pkg-config --cflags alsa glib-2.0)
166 PACKAGES_LIBS := $(shell pkg-config --libs alsa glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0)
168 -LDFLAGS = -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \
169 +LDFLAGS := -L$(BUILD_DIR) -lm $(PACKAGES_LIBS) \
171 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
172 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
177 Only in patched/modules/javafx.media/src/main/native/gstreamer/projects/linux/gstreamer-lite: Makefile.orig
178 diff -aur orig/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile patched/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile
179 --- orig/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 2022-07-12 13:56:53.000000000 +0200
180 +++ patched/modules/javafx.media/src/main/native/jfxmedia/projects/linux/Makefile 2022-07-20 15:59:21.892883201 +0200
183 TARGET = $(BUILD_DIR)/lib$(BASE_NAME).so
185 -CFLAGS = -DTARGET_OS_LINUX=1 \
186 +CFLAGS := -DTARGET_OS_LINUX=1 \
188 -DGST_REMOVE_DEPRECATED \
189 -DGST_DISABLE_GST_DEBUG \
191 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 \
192 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 \
193 -Werror=deprecated-declarations \
194 - -ffunction-sections -fdata-sections
195 + -ffunction-sections -fdata-sections \
198 CPPFLAGS = -fno-rtti -ffunction-sections -fdata-sections
201 -I$(GSTREAMER_LITE_DIR)/gstreamer/libs \
204 - LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
205 + LDFLAGS := -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) -lgstreamer-lite $(PACKAGES_LIBS) \
207 - -static-libgcc -static-libstdc++ -Wl,--gc-sections
208 + -static-libgcc -static-libstdc++ -Wl,--gc-sections \
211 CFLAGS += $(EXTRA_CFLAGS)
212 INCLUDES = $(BASE_INCLUDES)
213 LDFLAGS = -Wl,-rpath,\$$ORIGIN -L$(BUILD_DIR) $(EXTRA_LDFLAGS)
216 -ifeq ($(BUILD_TYPE), Release)
219 - CFLAGS += -g -Wall -D_DEBUG