[MacPorts] #24673: mlt universal variant doesn't build universal software

MacPorts noreply at macports.org
Mon May 3 16:26:52 PDT 2010


#24673: mlt universal variant doesn't build universal software
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  dan@…          
     Type:  defect                   |      Status:  new            
 Priority:  Normal                   |   Milestone:                 
Component:  ports                    |     Version:  1.8.2          
 Keywords:                           |        Port:  mlt            
-------------------------------------+--------------------------------------

Comment(by dan@…):

 Before I just give up, let me ask a question..
 The Portfile has a "build.env CFLAGS="${configure.cflags}"
 LDFLAGS="${configure.ldflags}" line, and I see that reflected in the build
 phase environment:
 {{{
 DEBUG: Environment: CFLAGS='-O2 -I/opt/local/include
 -I/opt/local/libexec/qt4-mac/include -arch x86_64 -arch i386'
 CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64 -arch i386'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 PKG_CONFIG_PATH='/opt/local/lib/pkgconfig:/opt/local/libexec/qt4-mac/lib/pkgconfig'
 CXX='/usr/bin/g++-4.2' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib
 -L/opt/local/lib -arch x86_64 -arch i386' OBJC='/usr/bin/gcc-4.2'
 FCFLAGS='-O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64
 -arch i386' FFLAGS='-O2' CC='/usr/bin/gcc-4.2' PKG_CONFIG='/opt/local/bin
 /pkg-config'
 ...
 DEBUG: Executing org.macports.build (mlt)
 DEBUG: Environment: CFLAGS='-O2 -I/opt/local/include
 -I/opt/local/libexec/qt4-mac/include' MACOSX_DEPLOYMENT_TARGET='10.6'
 LDFLAGS='-L/opt/local/lib -L/opt/local/lib'
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_Users_ddennedy_ports_multimedia_mlt/work/mlt"
 && /usr/bin/nice -n 10 /usr/bin/make -j1 all CC="/usr/bin/gcc-4.2"
 CXX="/usr/bin/g++-4.2" CPP="/usr/bin/cpp-4.2"'
 }}}

 But why do I not see the -arch flags in the compilation lines?
 {{{
 /usr/bin/gcc-4.2 -O2 -I/opt/local/include
 -I/opt/local/libexec/qt4-mac/include -Wall -fPIC -DPIC   -O2 -pipe -fomit-
 frame-pointer -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL
 -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -fPIC -DPIC   -O2 -pipe -fomit-frame-
 pointer -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL
 -D_GNU_SOURCE=1 -D_THREAD_SAFE  -DPREFIX="\"/opt/local\""
 -DLIBDIR="\"/opt/local/lib\""   -c -o mlt_frame.o mlt_frame.c
 }}}

 I see other flags like the include dirs getting picked up, but why not the
 -arch options? What happened to them? My Makefiles use CFLAGS+= and do
 nothing special to filter out arch options.

-- 
Ticket URL: <http://trac.macports.org/ticket/24673#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list