Commits

camlspotter committed 1344c5f

ocamlfind fix

Comments (0)

Files changed (1)

 CFLAGS+= -fPIC -I $(OCAML_WHERE) -I $(PY_PREFIX)/include/python$(PY_VERSION)
 
 # I (jfuruse) install camlidl using findlib, but not for the others.
-try
-    CAMLIDL_FINDLIB=$(shell ocamlfind query camlidl)
-    L_CAMLIDL_FINDLIB=-L$(CAMLIDL_FINDLIB)
-    CCOPT_L_CAMLIDL_FINDLIB=-ccopt $(L_CAMLIDL_FINDLIB)
-    export
-default
-    CAMLIDL_FINDLIB=
-    L_CAMLIDL_FINDLIB=
-    CCOPT_L_CAMLIDL_FINDLIB=
-    export 
+CAMLIDL_FINDLIB=$(OCAMLFIND_DESTDIR)/camlidl
+L_CAMLIDL_FINDLIB=-L$(CAMLIDL_FINDLIB)
+CCOPT_L_CAMLIDL_FINDLIB=-ccopt $(L_CAMLIDL_FINDLIB)
 
 IDLS[] =
     auto