Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


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

[Frama-c-discuss] How to use external libraries in Dynamic Plugin


  • Subject: [Frama-c-discuss] How to use external libraries in Dynamic Plugin
  • From: Pierre-Loic.Garoche at onera.fr (Pierre-Loïc Garoche)
  • Date: Mon, 3 Oct 2011 10:04:13 -0500
  • In-reply-to: <569C6D7D26484241A530B87F45ADE1F87DCF03@AOFRWMBXRSC004.resources.atosorigin.local>
  • References: <569C6D7D26484241A530B87F45ADE1F87DCF03@AOFRWMBXRSC004.resources.atosorigin.local>

Hi St?phane,

this should be not a problem. I used to do that to link against APRON and other libraries.
The Makefile variable PLUGIN_EXTRA_OPT should still exist, no ?

I had somethinkg like that:

# XML Output
ifeq (no,yes)
XMLP4 = -DXML_CHECK
XML_LIB = xml-light
XML_LINK = -I $(shell ocamlfind query xml-light)
endif

LINK = $(XML_LINK) -I $(shell ocamlfind query regexp) $(APRON_LINK)
LIBS = $(XML_LIB) regexp $(APRON_LIBS)

PLUGIN_BFLAGS = $(LINK)
PLUGIN_OFLAGS = $(LINK)
PLUGIN_LINK_OFLAGS = $(LINK)

PLUGIN_EXTRA_OPT = $(LIBS:=.cmxa) $(APRON_LINK_OPTIONS) $(addprefix $(APRON_PATH
)/,$(APRON_LIBSA))

Does it answer you question ?

-- 
Pierre-Lo?c Garoche
pierre-loic.garoche at onera.fr
pierre-loic-garoche at uiowa.edu
http://www.onera.fr/staff/pierre-loic-garoche/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20111003/f508b5f6/attachment.pgp>