[FFmpeg-devel] [PATCH] library.mak: add rpath to shared libraries

Michael Niedermayer michaelni at gmx.at
Wed Jul 8 15:15:50 CEST 2015


On Tue, Jul 07, 2015 at 09:55:00PM -0400, Ganesh Ajjanagadde wrote:
> On Sun, Jul 5, 2015 at 1:01 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Sat, Jul 04, 2015 at 10:21:47AM -0400, Ganesh Ajjanagadde wrote:
> >> On Sat, Jun 27, 2015 at 7:18 PM, Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
> >> > On Sat, Jun 27, 2015 at 9:49 AM, Ganesh Ajjanagadde <gajjanag at mit.edu> wrote:
> >> >> On Sat, Jun 27, 2015 at 2:22 AM, Hendrik Leppkes <h.leppkes at gmail.com> wrote:
> >> >>> On Sat, Jun 27, 2015 at 3:09 AM, Ganesh Ajjanagadde
> >> >>> <gajjanagadde at gmail.com> wrote:
> >> >>>> Fixes Ticket4673
> >> >>>>
> >> >>>> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> >> >>>> ---
> >> >>>>  library.mak | 2 +-
> >> >>>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >> >>>>
> >> >>>> diff --git a/library.mak b/library.mak
> >> >>>> index 29460b8..401da7c 100644
> >> >>>> --- a/library.mak
> >> >>>> +++ b/library.mak
> >> >>>> @@ -58,7 +58,7 @@ $(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
> >> >>>>
> >> >>>>  $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SLIBOBJS) $(SUBDIR)lib$(NAME).ver
> >> >>>>         $(SLIB_CREATE_DEF_CMD)
> >> >>>> -       $$(LD) $(SHFLAGS) $(LDFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS)
> >> >>>> +       $$(LD) $(SHFLAGS) $(LDFLAGS) $(LDEXEFLAGS) $$(LD_O) $$(filter %.o,$$^) $(FFEXTRALIBS)
> >> >>>>         $(SLIB_EXTRA_CMD)
> >> >>>
> >> >>> LDEXEFLAGS is clearly not the appropriate way to go about this. These
> >> >>> flags are for executables, not for shared libraries.
> >> >>>
> >> >>> - Hendrik
> >> >>
> >> >> Ok, so is it fine if this gets added to LDFLAGS instead? Or should a
> >> >> separate e.g LDLIBFLAGS be used?
> >> >
> >> > Attached is new patch that creates a LDLIBFLAGS.
> >>
> >> Ping.
> >
> > breaks build with mingw
> >
> > make
> > ffmpeg/library.mak:111: *** commands commence before first target.  Stop.
> 
> So I did a successful cross-compile (as per the guide online) using my
> patch and configure line:
> ./configure --enable-rpath --prefix=/opt/ffmpeg --enable-shared
> --enable-memalign-hack --arch=x86 --target-os=mingw32
> --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config
> 
> I do not get any such build error.
> Is it a problem with native mingw build?

i tried again and it works now, i am not sure but i think git
maybe had removed a tab when applying and i missed that

patch applied

thanks


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150708/1a1d95fa/attachment.sig>


More information about the ffmpeg-devel mailing list