Menu

#351 When CCI is installed on Mac OS X, the libraries have extension .dylib not .so as on Linux

open
nobody
None
5
2012-12-06
2012-12-06
Jira Trac
No

I've just installed CUBRID CCI driver on Mac OS X following [this tutorial|https://github.com/kadishmal/cubrid-mac-os-x].

On Mac OS X platform *make* program always creates libraries with .dylib* extension. Linux compilers create *.so* libraries. After installing CCI driver, we have the following files on Mac OS X.

- libcascci.8.dylib
- libcascci.a
- libcascci.dylib - libcascci.8.dylib
- libcascci.la

Since CUBRID PHP and PDO drivers (and probably other drivers as well) try to link to *libcascci.so*, users on Mac need to manually create a symlink for libcascci.8.dylib. Which is not very convenient.

It would be very nice and convenient if CUBRID driver installers (Makefiles) tested if this is Mac OS X or not (ifdef DARWIN), then link to *libcascci.dylib* instead of *libcascci.so*.

Please add this to CUBRID drivers. You may refer to how MySQL does this.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.