Thanks Amy. I've applied your patch which was committed in revision 25.
Regards,
Russell
On 06/09/12 07:52, Amy Troschinetz wrote:
> Hello All,
>
> We've recently started using this library on OS X for all of our ODBC needs, but initially we ran into a small build issue in the Makefile that I had to work around. On OS X, -soname is not a valid argument, below. Instead, -install_name (or -dylib_install_name) should be used.
>
> Here's the patch:
>
> --- old/Makefile 2012-02-26 05:40:58.000000000 -0600
> +++ new/Makefile 2012-09-05 16:40:13.000000000 -0500
> @@ -83,8 +83,14 @@
> cd ..; tar --exclude=CVS --exclude=debian -czf simpledb-$(VER_STR).tar.gz \
> simpledb-$(VER_STR)/*
>
> +UNAME := $(shell uname)
> +ifeq ($(UNAME), Darwin)
> + LIB_NAME_OPTION := -install_name
> +else
> + LIB_NAME_OPTION := -soname
> +endif
> $(LIB_NAME).so.$(LIB_VERSION) : $(OBJ_FILES)
> - $(CXX) -shared -Wl,-soname,$(LIB_NAME).so.$(SO_VER) -lstdc++ -lodbc -o $@ $(OBJ_FILES)
> + $(CXX) -shared -Wl,$(LIB_NAME_OPTION),$(LIB_NAME).so.$(SO_VER) -lstdc++ -lodbc -o $@ $(OBJ_FILES)
>
> %.o : %.cpp
> $(CXX) -fPIC $(CXXFLAGS) -c $< -o $@
>
> —
> Amy Troschinetz
> Senior Software Developer
>
> Adometry, Inc.
> Amy...@ad...
> www.adometry.com
>
|