Eliminate patching to set LDFLAGS

This commit is contained in:
Mikolaj Izdebski 2020-11-25 15:04:17 +01:00
parent 6ec82410fb
commit 31ab35f5ae
2 changed files with 1 additions and 16 deletions

View File

@ -8,8 +8,6 @@ URL: http://byaccj.sourceforge.net/
Source0: http://sourceforge.net/projects/byaccj/files/byaccj/1.15/byaccj1.15_src.tar.gz
Patch0: honor-ldflags.patch
BuildRequires: gcc
BuildRequires: make
@ -27,9 +25,8 @@ Java now!
%prep
%setup -q -n %{name}%{version}
%patch0 -p1
chmod -c -x src/* docs/*
sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4||g' src/Makefile
sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4|$(LDFLAGS)|g' src/Makefile
%build

View File

@ -1,12 +0,0 @@
diff -ruN byaccj1.15.orig/src/Makefile byaccj1.15/src/Makefile
--- byaccj1.15.orig/src/Makefile 2020-11-23 15:20:38.376711773 +0100
+++ byaccj1.15/src/Makefile 2020-11-23 15:20:58.680671903 +0100
@@ -75,7 +75,7 @@
$(CC) -c $(CFLAGS) $(INC) $< -o $@
yacc: $(OBJ)
- $(CC) -o yacc $(OBJ)
+ $(CC) -o yacc $(LDFLAGS) $(OBJ)
@echo "done"
clean: