diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-05-13 11:43:27 +0200 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-05-13 11:49:54 +0200 |
| commit | 8b659812a21508795778a345dbbf7d08b7fcbb38 (patch) | |
| tree | 6434b5780bb4c17d0569c477b58fc05628238ae4 | |
| parent | devel/mold: Update to 2.39.1 (diff) | |
emulators/virtualbox-ose-kmod: fix cross building
For cross building the CC variable is passed quoted with the target
the which configure script from VirtualBox expects it to only be the
name of the command and using which to determine if usable.
Replacing in the which_wrapper function the call of $* with only the
first argument, makes it accept cross building.
Cross building support is important for kmods as they are all cross
built to populate the kmods repositories
| -rw-r--r-- | emulators/virtualbox-ose-kmod/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emulators/virtualbox-ose-kmod/Makefile b/emulators/virtualbox-ose-kmod/Makefile index 28f57d2c777c..d99d0ef6f084 100644 --- a/emulators/virtualbox-ose-kmod/Makefile +++ b/emulators/virtualbox-ose-kmod/Makefile @@ -91,7 +91,7 @@ post-patch: .if ${PORT_OPTIONS:MVIMAGE} @${ECHO_CMD} 'VBOX_WITH_NETFLT_VIMAGE = 1' >> ${WRKSRC}/LocalConfig.kmk .endif - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; s|which \$$\*|which \$$1|g' \ ${WRKSRC}/Config.kmk ${WRKSRC}/configure @${REINPLACE_CMD} \ -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' \ |
