mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* automatic dynamic / static linking detection
git-svn-id: trunk@11532 -
This commit is contained in:
parent
14e79700cc
commit
1a461c43fc
@ -8,13 +8,21 @@ interface
|
||||
uses
|
||||
ctypes;
|
||||
|
||||
{.$DEFINE DYNLINK}
|
||||
{$IFDEF WINDOWS}
|
||||
{$DEFINE DYNLINK}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF DYNLINK}
|
||||
const
|
||||
{$IF Defined(WINDOWS)}
|
||||
libxml2lib = 'libxml2.dll';
|
||||
{$ELSEIF Defined(UNIX)}
|
||||
libxml2lib = 'libxml2.so';
|
||||
{$ELSE}
|
||||
{$LINKLIB libxml2.so}
|
||||
{$MESSAGE ERROR 'DYNLINK not supported'}
|
||||
{$IFEND}
|
||||
{$ELSE}
|
||||
{$LINKLIB libxml2}
|
||||
{$ENDIF}
|
||||
|
||||
{$i xmlexports.inc}
|
||||
|
Loading…
Reference in New Issue
Block a user