atris / JDBC_FDW

FDW that wraps JDBC for PostgreSQL.It can be used to connect and fetch data from any data source that supports JDBC
Other
66 stars 38 forks source link

Partial Fix for issue 1 (build on Mac OSX) #5

Closed felipefedel closed 11 years ago

felipefedel commented 11 years ago

Hi. I've made some changes on MakeFile to build it on a Mac OSX.

I used "SHLIB_LINK = -I/System/Library/Frameworks/JavaVM.framework/Headers -L/System/Library/Frameworks/JavaVM.framework/Libraries -ljvm -framework JavaVM" instead of only "SHLIB_LINK = -ljvm" and it worked. It's returning a warning but is running OK.

The warning: ld: warning: ignoring file /System/Library/Frameworks/JavaVM.framework/Libraries/libjvm.dylib, file was built for unsupported file format ( 0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): /System/Library/Frameworks/JavaVM.framework/Libraries/libjvm.dylib

I will try to figure out...

I inserted a condition in Makefile to check the OS kernel and select the correct SHLIB_LINK.

I hope it helps ;)