Add LDFLAGS to linking
Add the usual LDFLAGS when linking.
This commit is contained in:
parent
ec0ec05211
commit
730a21a590
12
fxload-ldflags.patch
Normal file
12
fxload-ldflags.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ruN fxload-2008_10_13.orig/Makefile fxload-2008_10_13/Makefile
|
||||||
|
--- fxload-2008_10_13.orig/Makefile 2008-10-13 23:44:04.000000000 +0200
|
||||||
|
+++ fxload-2008_10_13/Makefile 2020-11-03 16:05:41.516974652 +0100
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
|
||||||
|
# object files
|
||||||
|
$(PROG): $(FILES_OBJ)
|
||||||
|
- $(CC) -o $(PROG) $(FILES_OBJ)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $(PROG) $(FILES_OBJ)
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
$(CC) -c $(CFLAGS) $< -o $@
|
@ -15,6 +15,7 @@ Source0: fxload-%{version}-noa3load.tar.gz
|
|||||||
# ./fxload-generate-tarball.sh 2008_10_13
|
# ./fxload-generate-tarball.sh 2008_10_13
|
||||||
Source1: fxload-generate-tarball.sh
|
Source1: fxload-generate-tarball.sh
|
||||||
Patch0: fxload-noa3load.patch
|
Patch0: fxload-noa3load.patch
|
||||||
|
Patch1: fxload-ldflags.patch
|
||||||
|
|
||||||
BuildRequires: gcc kernel-headers
|
BuildRequires: gcc kernel-headers
|
||||||
Requires: udev
|
Requires: udev
|
||||||
@ -29,6 +30,7 @@ appears on the bus.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .fxload-noa3load
|
%patch0 -p1 -b .fxload-noa3load
|
||||||
|
%patch1 -p1 -b .ldflags
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
make CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user