[Flac-dev] Mac OS X - xmms plugin probs

Ben Hines bhines at alumni.ucsd.edu
Wed Jun 26 01:35:07 PDT 2002


That patch does get the .libs dir added to the compile line. But the 
other problem is that libtool is attempting to link against the 
installed version of libFLAC, that is $(DESTDIR)/lib/libFLAC.dylib 
instead of -lFLAC.

See:

cc -bundle -flat_namespace -undefined suppress -o .libs/libxmms-flac.so  
plugin.lo  -L/sw/lib /sw/lib/libFLAC.dylib 
-L/sw/src/flac-1.0.2-1/flac-1.0.2/src/libFLAC/.libs -L/usr/X11R6/lib 
/sw/lib/libgtk.dylib /sw/lib/libgdk.dylib /sw/lib/libgmodule.dylib 
/sw/lib/libglib.dylib -ldl /sw/lib/libintl.dylib -lXext -lX11 -lm 
/sw/lib/libxmms.dylib /sw/lib/libogg.dylib -lc -install_name  
/sw/lib/xmms/Input/libxmms-flac.so
cc: /sw/lib/libFLAC.dylib: No such file or directory
libtool-disable-static: install: error: relink `libxmms-flac.la' with 
the above command before installing it
libtool-disable-static: install: warning: remember to run 
`libtool-disable-static --finish /sw/lib/xmms/Input'


Not sure how to fix this one, but this HACK to ltmain.sh fixes this 
problem. It just totally disables relinking, and does not seem to have 
any ill effects.

--- flac-1.0.2/ltmain.sh	Mon Dec  3 23:10:14 2001
+++ flac-1.0.2-patched/ltmain.sh	Wed Jun 26 01:06:54 2002

@@ -3948,10 +3952,10 @@

  # Directory that this library needs to be installed in:
  libdir='$install_libdir'"
-	  if test "$installed" = no && test $need_relink = yes; then
-	    $echo >> $output "\
-relink_command=\"$relink_command\""
-	  fi
+#	  if test "$installed" = no && test $need_relink = yes; then
+#	    $echo >> $output "\
+#relink_command=\"$relink_command\""
+#	  fi
  	done
        fi

Since this works fine for me, i'll add flac-1.0.2 to fink as soon as I 
can. I probably should make separate packages for flac with and without 
the xmms plugin, since with the xmms plugin flac will have to depend on 
xmms which depends on xfree86.

-Ben





More information about the Flac-dev mailing list