summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ocaml')
-rw-r--r--lang/ocaml/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index d243a836199..9391bd525d3 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2002/08/22 02:56:51 jschauma Exp $
+# $NetBSD: Makefile,v 1.13 2003/03/14 19:37:42 jlam Exp $
#
DISTNAME= ocaml-3.06
@@ -16,7 +16,10 @@ HAS_CONFIGURE= yes
CONFIGURE_ARGS+= -prefix ${LOCALBASE}
CONFIGURE_ARGS+= -tklibs -L${LOCALBASE}/lib
CONFIGURE_ARGS+= -tkdefs "-I${LOCALBASE}/include "
-CONFIGURE_ARGS+= -libs "-Wl,-R${X11BASE}/lib -Wl,-R${LOCALBASE}/lib"
+CONFIGURE_ARGS+= -libs "${OCAML_LDFLAGS}"
+OCAML_LDFLAGS= -Wl,${RPATH_FLAG}${X11BASE}/lib \
+ -Wl,${RPATH_FLAG}${LOCALBASE}/lib
+FIX_RPATH+= OCAML_LDFLAGS
ALL_TARGET= world