[Rubygems-developers] Passing LDFLAGS?

Austin Ziegler halostatue at gmail.com
Wed Jan 23 17:55:17 EST 2008

On Jan 23, 2008 4:39 PM, Eric Hodel <drbrain at segment7.net> wrote:
> On Jan 23, 2008, at 05:39 AM, Austin Ziegler wrote:
>> Why isn't LDFLAGS being passed along to make in the Gem?
> Does it get passed without sudo?

No difference as far as I can tell. It looks like I *could* sneak it
in with ARCHFLAGS, but that doesn't seem right.

  % sudo bash
  # CPPFLAGS="-I/opt/local/include" ARCHFLAGS="-arch i386" \
        LDFLAGS="-L/opt/local/lib" gem install fxruby

g++ -I. -I. -I/System/Library/Frameworks/Ruby.framework/[...] \
	-I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.6 \
	-I/opt/local/include/fox-1.6 -I/opt/local/include/fxscintilla \
	-fno-common -arch i386 -Os -pipe -fno-common -O0 -Iinclude \
	-DWITH_FXSCINTILLA -DHAVE_FOX_1_6   -c unregisterOwnedObjects.cpp
cc -arch i386 -pipe -bundle -o fox16.bundle librb.o core_wrap.o \
	 dc_wrap.o dialogs_wrap.o frames_wrap.o fx3d_wrap.o FXRbApp.o \
	 FXRbDataTarget.o FXRbGLViewer.o FXRuby.o iconlist_wrap.o \
	 icons_wrap.o image_wrap.o impl.o label_wrap.o layout_wrap.o \
	 list_wrap.o markfuncs.o mdi_wrap.o menu_wrap.o scintilla_wrap.o \
	 table_wrap.o text_wrap.o treelist_wrap.o ui_wrap.o \
	 unregisterOwnedObjects.o -L"."
	 -L"/System/Library/Frameworks/Ruby.framework/[...]" \
	 -L"/usr/local/lib" -L"/usr/X11R6/lib" -L. -arch i386 -lruby \
	 -lfxscintilla -lFOX-1.6 -lGLU -lX11 -lXext -lz -lstdc++ -lpthread \
	 -ldl -lm
ld: library not found for -lfxscintilla
collect2: ld returned 1 exit status

> AFAIK, nothing is changed in the LDFLAGS within rubygems.

Austin Ziegler * halostatue at gmail.com * http://www.halostatue.ca/
               * austin at halostatue.ca * http://www.halostatue.ca/feed/
               * austin at zieglers.ca

More information about the Rubygems-developers mailing list