diff options
author | trasz <trasz@FreeBSD.org> | 2015-01-21 21:48:36 +0800 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-01-21 21:48:36 +0800 |
commit | 0d0816e774a09cccd642807f0884058c636027b0 (patch) | |
tree | d6695fb3ff99528e6b614a6a3c94feec684c63da /sysutils/shim | |
parent | 66e101550ccc9c7189b52c3167be3f1080510e54 (diff) | |
download | freebsd-ports-gnome-0d0816e774a09cccd642807f0884058c636027b0.tar.gz freebsd-ports-gnome-0d0816e774a09cccd642807f0884058c636027b0.tar.zst freebsd-ports-gnome-0d0816e774a09cccd642807f0884058c636027b0.zip |
Don't hardcode "gcc48"; it would break after GCC upgrade. Don't install
*.efi files as executables; from the strip(1) point of view they are data
files (actually, they are executables, but PE, not ELF).
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sysutils/shim')
-rw-r--r-- | sysutils/shim/Makefile | 7 | ||||
-rw-r--r-- | sysutils/shim/files/patch-Makefile | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sysutils/shim/Makefile b/sysutils/shim/Makefile index 72363f1f88fb..8a5d7a60fdf9 100644 --- a/sysutils/shim/Makefile +++ b/sysutils/shim/Makefile @@ -27,11 +27,12 @@ PLIST_FILES= lib/shim/MokManager.efi lib/shim/fallback.efi lib/shim/shim.efi post-patch: @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" ${WRKSRC}/make-certs + @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/Makefile do-install: ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/shim - ${INSTALL_PROGRAM} ${WRKSRC}/shim.efi ${STAGEDIR}/${PREFIX}/lib/shim - ${INSTALL_PROGRAM} ${WRKSRC}/MokManager.efi ${STAGEDIR}/${PREFIX}/lib/shim - ${INSTALL_PROGRAM} ${WRKSRC}/fallback.efi ${STAGEDIR}/${PREFIX}/lib/shim + ${INSTALL_DATA} ${WRKSRC}/shim.efi ${STAGEDIR}/${PREFIX}/lib/shim + ${INSTALL_DATA} ${WRKSRC}/MokManager.efi ${STAGEDIR}/${PREFIX}/lib/shim + ${INSTALL_DATA} ${WRKSRC}/fallback.efi ${STAGEDIR}/${PREFIX}/lib/shim .include <bsd.port.mk> diff --git a/sysutils/shim/files/patch-Makefile b/sysutils/shim/files/patch-Makefile index ff4383ff952c..fb3dfbea2344 100644 --- a/sysutils/shim/files/patch-Makefile +++ b/sysutils/shim/files/patch-Makefile @@ -4,7 +4,7 @@ -CC = $(CROSS_COMPILE)gcc +CROSS_COMPILE = $(LOCALBASE)/bin/ + -+CC = $(CROSS_COMPILE)gcc48 ++CC = $(CROSS_COMPILE)%%CC%% LD = $(CROSS_COMPILE)ld OBJCOPY = $(CROSS_COMPILE)objcopy |