Skip to content

Commit

Permalink
add -Wl,-d to LDFLAGS to fix grub-mkimage locating kernel.img
Browse files Browse the repository at this point in the history
  • Loading branch information
gjswalling committed Mar 26, 2024
1 parent a0c8806 commit 42caf7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SPECS/grub2/grub2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ mv gnulib-%{gnulibversion} gnulib
%build
# Remove module_info.ld script due to error "grub2-install: error: Decompressor is too big"
LDFLAGS="`echo " %{build_ldflags} " | sed 's#-Wl,-dT,%{_topdir}/BUILD/module_info.ld##'`"
LDFLAGS="-Wl,-d $LDFLAGS"
export LDFLAGS

export PYTHON=%{python3}
Expand Down

0 comments on commit 42caf7d

Please sign in to comment.