Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Oberhuber2017-05-25 16:26:53 -0400
committerArun Thondapu2017-05-29 13:03:01 -0400
commitc636cf26e8ae94def06ac84039f9dde6e85f5e5d (patch)
tree736d8e30cd44b58d4f9ba412796ae5f02419be96 /features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak
parent13af9dee8d49f1c068d8bc8caaf3ec816f754a3a (diff)
downloadrt.equinox.framework-c636cf26e8ae94def06ac84039f9dde6e85f5e5d.tar.gz
rt.equinox.framework-c636cf26e8ae94def06ac84039f9dde6e85f5e5d.tar.xz
rt.equinox.framework-c636cf26e8ae94def06ac84039f9dde6e85f5e5d.zip
Bug 517013 - Avoid memcpy@GLIBC_2.14 dependency on Linux x86_64
On newer Linux x86_64 hosts like REL7, an optimized version of memcpy() is available in glibc and linked in by default. The drawback of linking that optimized version is, that the resulting binaries don't run any more on older Linux distributions like REL6 (where that optimized memcpy@GLIBC_2.14 is not available). This fix avoids the problem by replacing memcpy() with memmove() on Linux x86_64 hosts only. To be safe, it also compiles with -fno-builtin-memcpy -fno-builtin-memmove on Linux x86_64. See also bug 515155 for a very similar fix in SWT to support REL6. Change-Id: I39bc8d4975015eb52f35d3d02eae921bf6d66478 Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com> Signed-off-by: Arun Thondapu <arunkumar.thondapu@in.ibm.com>
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak')
-rw-r--r--features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak b/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak
index 6abe01702..e20823478 100644
--- a/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak
+++ b/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak
@@ -48,7 +48,7 @@ GTK_LIBS = \
-DGTK3_LIB="\"libgtk-3.so.0\"" -DGDK3_LIB="\"libgdk-3.so.0\"" \
-DPIXBUF_LIB="\"libgdk_pixbuf-2.0.so.0\"" -DGOBJ_LIB="\"libgobject-2.0.so.0\"" -DX11_LIB="\"libX11.so.6\""
LFLAGS = ${M_ARCH} -shared -fpic -Wl,--export-dynamic
-CFLAGS = ${M_ARCH} -g -s -Wall\
+CFLAGS = ${M_CFLAGS} ${M_ARCH} -g -s -Wall\
-fpic \
-DLINUX \
-DMOZILLA_FIX \

Back to the top