diff --git a/eclipse.spec b/eclipse.spec index b263aa27213b0ba0919fbded6851402df873588f..52084c6f10248137bbea7b329bd71a7f4a45fa6a 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -11,7 +11,7 @@ Name: eclipse Epoch: 1 Version: 4.11 -Release: 6 +Release: 7 Summary: An open, extensible IDE License: EPL-2.0 URL: http://www.eclipse.org/ @@ -407,6 +407,8 @@ export M_CFLAGS="$CFLAGS" export M_ARCH="$LDFLAGS" export MAVEN_OPTS="-Xmx1024m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}" export JAVA_HOME=%{_jvmdir}/java +sed -i 's/-shared -fPIC ${SWT_LFLAGS}/-shared -fPIC -fPIE -Wl,-pie -Wl,-s ${SWT_LFLAGS}/g' eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/make_linux.mak +sed -i 's/-shared -fPIC ${SWT_LFLAGS}/-shared -fPIC -fPIE -Wl,-pie -Wl,-s ${SWT_LFLAGS}/g' eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/make_win32.mak sed -i -e '/createSourcesJar/d' eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml (cd eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent && xmvn -e -o -B clean verify) mv eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/target/javaagent-shaded.jar \ @@ -758,6 +760,9 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.osgi.util_* %changelog +* Tue Jun 06 2023 yaoxin - 1:4.11-7 +- Add PIE flags and modify strip + * Fri Oct 28 2022 wangkai - 1:4.11-6 - Fix objectweb.asm version limit - Add security compile options pie, relro and -fstack-protector-strong