OCaml propagates its build time LDFLAGS to the Software it builds.
The attached diff does add ${X11BASE}/lib to that.

While that's not strictly needed right now afaict, it'll help when
updating some of our ports to their latest versions that are 5.x
compatible.

ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/ocaml/Makefile,v
retrieving revision 1.98
diff -u -p -r1.98 Makefile
--- Makefile	3 Sep 2023 14:57:17 -0000	1.98
+++ Makefile	6 Sep 2023 12:46:26 -0000
@@ -3,7 +3,7 @@ COMMENT =	   ML language with complete c
 # XXX Don't even think of updating ocaml alone.
 # Do check that the ports that depend on it still work, or repair them.
 VERSION=	4.12.1
-REVISION=	4
+REVISION=	5
 
 # if the ocaml compiler gains support for BTI, as well as
 # removing USE_NOBTCFI here (or changing to an arch-dependent
@@ -43,7 +43,8 @@ CONFIGURE_ARGS +=	--disable-force-safe-s
 			--enable-ocamltest
 
 CFLAGS +=	-I${LOCALBASE}/include
-LDFLAGS +=	-L${LOCALBASE}/lib
+LDFLAGS +=	-L${LOCALBASE}/lib \
+		-L${X11BASE}/lib
 
 # non-PIC assembly in asmrun/i386.S
 .if ${MACHINE_ARCH} == "i386"

Reply via email to