pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/grub2



Module Name:    pkgsrc
Committed By:   khorben
Date:           Wed Feb  1 04:22:08 UTC 2023

Modified Files:
        pkgsrc/sysutils/grub2: Makefile

Log Message:
grub2: fix building with the freetype option

grub2 builds binaries for execution during the build, to generate the
fonts for instance. Without the right COMPILER_RPATH_FLAG and path in
BUILD_LDFLAGS, the binaries may fail to find libfreetype.so.

Tested on NetBSD/amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/sysutils/grub2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/grub2/Makefile
diff -u pkgsrc/sysutils/grub2/Makefile:1.28 pkgsrc/sysutils/grub2/Makefile:1.29
--- pkgsrc/sysutils/grub2/Makefile:1.28 Sun Jan 29 21:17:47 2023
+++ pkgsrc/sysutils/grub2/Makefile      Wed Feb  1 04:22:08 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2023/01/29 21:17:47 ryoon Exp $
+# $NetBSD: Makefile,v 1.29 2023/02/01 04:22:08 khorben Exp $
 
 DISTNAME=              grub-2.04
 PKGNAME=               ${DISTNAME:S/grub/grub2/}
@@ -39,6 +39,7 @@ USE_PKGLOCALEDIR=     yes
 .include "../../mk/bsd.prefs.mk"
 
 CFLAGS+=               -Wno-unused-value
+MAKE_FLAGS+=           BUILD_LDFLAGS=${COMPILER_RPATH_FLAG}${X11BASE}/lib
 
 #
 # Build requirements, taken from the INSTALL file in GRUB's distribution:



Home | Main Index | Thread Index | Old Index