bison: Proper use LDFLAGS to link liby

Message ID 20230311125317.96540-1-stefan.schantl@ipfire.org
State Accepted
Commit efb8e57d8dfc7456f65ebc56cd484879453f43f8
Headers
Series bison: Proper use LDFLAGS to link liby |

Commit Message

Stefan Schantl March 11, 2023, 12:53 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 bison/bison.nm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/bison/bison.nm b/bison/bison.nm
index 96d0ed331..3a8665a0c 100644
--- a/bison/bison.nm
+++ b/bison/bison.nm
@@ -5,7 +5,7 @@ 
 
 name       = bison
 version    = 3.8.2
-release    = 1
+release    = 2
 
 groups     = Development/Tools
 url        = http://www.gnu.org/software/bison/
@@ -32,7 +32,7 @@  build
 
 	build_cmds
 		cd lib
-		gcc -shared -Wl,-soname,liby.so.%{version} \
+		gcc %{LDFLAGS} -shared -Wl,-soname,liby.so.%{version} \
 			-o liby.so.%{version} %{CFLAGS} main.o yyerror.o
 	end