-
Hello, I needed to build a dll file for an old target with Pentium II cpu, it was fairly simple to compile my sources for this target, howewer there is a catch, static libs from libgcc are built by default with -march=pentium4 option, so I wanted to recompile it with -march=pentium2 or --with-cpu=pentium2, but I am copletely stuck, as --with-cpu=pentium2 option in PKGBUILD doen't change the fact of -march=pentium4 option being included for compiling tasks and I haven't succeed in finding. Where should one redefine or add arch selection option in the configs or sources in order to override the default -march=pentium4 (package C:\msys64\home\pl752\mingw-w64-gcc)? Or is there some separate mingw package just for libgcc, where it is easier to achieve? Or is it impossible for some source specific reasons? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Default compiler flags are set using /etc/makepkg_mingw.conf file. There are some ways you can change those default flags. For example,
|
Beta Was this translation helpful? Give feedback.
Default compiler flags are set using /etc/makepkg_mingw.conf file. There are some ways you can change those default flags. For example,
options=('!buildflags')
in PKGBUILD files individually.CFLAGS="something" CXXFLAGS="something"
.