> 9 апр. 2015 г., в 15:27, Paul Moore <[email protected]> написал(а):
> 
> On 9 April 2015 at 12:02, Ray Donnelly <[email protected]> wrote:
>> When Alexey made pacman as-static-as-possible, he added the following
>> to AM_LDFLAGS for executables:
>> AM_LDFLAGS = -Wc,--static -Wc,-static-libgcc
> 
> Thanks.
> 
> Just to report on where I've got to so far, I am looking at
> MINGW-packages/mingw-w64-libarchive, which I downloaded from github.
> I've installed the base-devel and mingw-w64-x86_64-toolchain packages,
> then set MINGW_INSTALLS=mingw64 (to save time, as 64-bit builds are
> all I'm worried about for now). I set AM_LDFLAGS="-Wc,--static
> -Wc,-static-libgcc" and ran makepkg-mingw. That informed me of some
> dependencies I needed, so I installed them and reran, which
> successfully built. However, the resulting executable dynamically
> links its dependencies:
> 
> $ objdump -p pkg/mingw-w64-x86_64-libarchive/mingw64/bin/bsdtar.exe | grep DLL
> vma:            Hint    Time      Forward  DLL       First
>        DLL Name: ADVAPI32.dll
>        DLL Name: KERNEL32.dll
>        DLL Name: msvcrt.dll
>        DLL Name: USER32.dll
>        DLL Name: libbz2-1.dll
>        DLL Name: libexpat-1.dll
>        DLL Name: libiconv-2.dll
>        DLL Name: liblzma-5.dll
>        DLL Name: liblzo2-2.dll
>        DLL Name: libnettle-4-7.dll
>        DLL Name: libsystre-0.dll
>        DLL Name: zlib1.dll
> 
> I tried with AM_LDFLAGS as shown above, and with CFLAGS="-static" from
> the earlier suggestion. Both gave the same result, with no errors (at
> least, nothing that wasn't lost in all of the rest of the build output
> :-))
> 
> It's somewhat frustrating that everything seems to work, but the
> output is wrong, and there's no messages explaining why the flags I'm
> trying to supply were ignored. This is basically where I ended up with
> my manual build process - the only reliable way I could find to get
> autoconf to not use the DLLs was to never have them available in the
> first place.
> 
> Thanks for the help - and if the answer ends up being "nobody knows,
> and it's enough of a niche requirement that nobody can really help
> much" then I'm fine with that. But if anyone *does* have any
> suggestions, I'll happily try them out. If nothing else, I'm learning
> a lot from the whole exercise :-)
> 

Did you configure with —enable-static —disable shared?

> Paul
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to