wiki:UniversalDevelopment

Version 5 (modified by ryandesign (Ryan Carsten Schmidt), 15 years ago) (diff)

Mention muniversal portgroup

Port(1) supports for universal builds is not good enough to handle non-trivial cases. We currently try to develop mechanisms to overcome this, so we can make more ports build universal more easily.

Approaches

  • Adding the universal build flags (-arch ppc -arch ppc64 ..) to the compiler flags: Suited for straight compilation of executables
  • Adding universal build flags to the CFLAGS etc.: Suited for certain autotool driven builds
  • Adding universal build flags to the libtool command e.g. reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
  • Separating builds for different architectures, merging the different (single-arch) destroots: See the muniversal portgroup (emulation or multiple build machines differing in arch may be necessary for some ports)

Developers

mww (Markus W. Weissmann)