[MPlayer-dev-eng] [PATCH] NetBSD runtime library patch for _ld_extra

Bernd Ernesti mplayer at lists.veego.de
Thu May 30 19:34:07 CEST 2002


Hi,

I think this is a better patch for the runtime library path problem on
NetBSD:

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.487
diff -u -r1.487 configure
--- configure	30 May 2002 14:26:35 -0000	1.487
+++ configure	30 May 2002 17:35:06 -0000
@@ -273,7 +273,6 @@
     ;;
   --with-extralibdir=*)
     _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
-#    _ld_extra="${_ld_extra} -Wl,-R"`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -Wl\,-R,g'`" -L"`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
     ;;
   --enable-runtime-cpudetection)
     _runtime_cpudetection=yes
@@ -1263,6 +1262,15 @@
 echo "If you don't need vidix, you can use configure --disable-vidix instead."
 die "no awk"
 fi
+fi
+
+# NetBSD needs an extra linker option to define the runtime library
+# path, this should be used in --with-extralibdir, but unfortunally
+# we can't check for netbsd at this stage yet, so we have to add it
+# here. While here, also add an extra include directory based on $_prefix.
+if netbsd ; then
+  _ld_extra="$_ld_extra -L$_prefix/lib -Wl,-R$_prefix/lib"
+  _inc_extra="$_inc_extra -I$_prefix/include"
 fi
 
 
Regards,
Bernd

-------------- next part --------------
begin 644 patch.configure
M26YD97 at Z(&-O;F9I9W5R90H]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]"E)#4R!F
M:6QE.B`O8W9S<F]O="]M<&QA>65R+VUA:6XO8V]N9FEG=7)E+'8*<F5T<FEE
M=FEN9R!R979I<VEO;B`Q+C0X-PID:69F("UU("UR,2XT.#<@8V]N9FEG=7)E
M"BTM+2!C;VYF:6=U<F4),S`@36%Y(#(P,#(@,30Z,C8Z,S4 at +3`P,#`),2X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1O<GD at 8F%S960@;VX@)%]P<F5F:7 at N"BMI9B!N
M971B<V0 at .R!T:&5N"BL@(%]L9%]E>'1R83TB)%]L9%]E>'1R82`M3"1?<')E
M9FEX+VQI8B`M5VPL+5(D7W!R969I>"]L:6(B"BL@(%]I;F-?97AT<F$](B1?
F:6YC7V5X=')A("U))%]P<F5F:7 at O:6YC;'5D92(*(&9I"B`*(`IT
`
end


More information about the MPlayer-dev-eng mailing list