From b546d2f445963e28f0d2f4f2c7914536fbe60370 Mon Sep 17 00:00:00 2001 From: jvdias Date: Sun, 18 Dec 2005 20:38:47 +0000 Subject: [PATCH] fix -pie builds on x86_64 - compile with -fpic --- flex.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flex.spec b/flex.spec index eb700bc..68bdf01 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers). Name: flex Version: 2.5.4a -Release: 34.2 +Release: 34.3 License: BSD Group: Development/Tools BuildRoot: %{_tmppath}/%{name}-root @@ -13,7 +13,7 @@ Patch1: flex-2.5.4-glibc22.patch Patch2: flex-2.5.4a-gcc3.patch Patch3: flex-2.5.4a-gcc31.patch Patch4: flex-2.5.4a2.patch - +Patch5: flex-pic.patch BuildRequires: autoconf, byacc %description @@ -37,6 +37,7 @@ application development. %patch2 -p1 -b .glib3 %patch3 -p1 -b .gcc31 %patch4 -p1 -b .yynoinput +%patch5 -p1 -b .pic %build autoconf @@ -71,7 +72,8 @@ rm -rf ${RPM_BUILD_ROOT} %changelog * Sun Dec 18 2005 Jason Vas Dias -* rebuilt +* rebuild with 'flex-pic.patch' to enable -pie links + on x86_64 (patch from Jesse Keating) . * Fri Dec 09 2005 Jesse Keating - rebuilt