Jeremy Cowgar schreef:
Leonardo, Wow. That worked. I did a symlink from libpq.dylib to libpq.so
and it works now.
Is there a proper way to do this on mac os x anyone?
Thanks Lenardo!
Maybe apply this patch and recompile:
Index: base/postgres/dllistdyn.pp
===================================================================
--- base/postgres/dllistdyn.pp (revision 4739)
+++ base/postgres/dllistdyn.pp (working copy)
@@ -15,9 +15,14 @@
{$PACKRECORDS C}
{$IFDEF Unix}
+{$IFDEF Darwin}
const
+ pqlib = 'libpq.dylib';
+{$ELSE}
+ const
pqlib = 'libpq.so';
{$ENDIF}
+{$ENDIF}
{$IFDEF Windows}
const
pqlib = 'libpq.dll';
Index: base/postgres/postgres3dyn.pp
===================================================================
--- base/postgres/postgres3dyn.pp (revision 4739)
+++ base/postgres/postgres3dyn.pp (working copy)
@@ -15,9 +15,14 @@
dynlibs, SysUtils, dllistdyn;
{$IFDEF Unix}
+{$IFDEF Darwin}
const
+ pqlib = 'libpq.dylib';
+{$ELSE}
+ const
pqlib = 'libpq.so';
{$ENDIF}
+{$ENDIF}
{$IFDEF Win32}
const
pqlib = 'libpq.dll';
Vincent
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal