This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [patch] Update build flags for new compiler feature
Corinna Vinschen wrote:
>> I'll start building 4.3.4-2 on Monday. Busy this weekend.
>
> 'k. However, if you could give me the required expression, I'll add it
> to my cross gcc today :)
Just add it to LINK_SPEC, making sure it's at the top level rather than
inside any of the nested braces, e.g.:
> #define LINK_SPEC "\
> %{mwindows:--subsystem windows} \
> %{mconsole:--subsystem console} \
-tsaware \
> " CXX_WRAP_SPEC " \
> %{shared: %{mdll: %eshared and mdll are not compatible}} \
> %{shared: --shared} %{mdll:--dll} \
> %{static:-Bstatic} %{!static:-Bdynamic} \
> %{shared|mdll: -e \
> %{mno-cygwin:_DllMainCRTStartup@12 --enable-auto-image-base} \
> %{!mno-cygwin:__cygwin_dll_entry@12 --enable-auto-image-base}}\
> %{!mno-cygwin:--dll-search-prefix=cyg}\
> %(shared_libgcc_undefs)"
> Oh, another question. When unpacking your package, there's a file called
> CYGWIN-PATCHES/pr38579.missing.diff. The patch in that file hasn't been
> applied to the sources. Should it?
Yep, I stashed it away there because I forgot to put it in the build. It's
the fix for a problem someone reported on the main list.
cheers,
DaveK