Skip to content

Commit

Permalink
build: fix linux i686 build
Browse files Browse the repository at this point in the history
Adds -msse2 to compiler flags which is needed by new nlmeans sse acceleration


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6837 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
jstebbins committed Jan 30, 2015
1 parent 9ade44e commit 6528589
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions make/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,12 +1763,11 @@ class Tools:
select.doc_add( doc )

doc.addBlank()
doc.add( 'GCC.archs', arch.mode.mode )
if build.match( '*-*-darwin*' ):
doc.add( 'GCC.archs', arch.mode.mode )
doc.add( 'GCC.sysroot', cfg.sysroot_dir )
doc.add( 'GCC.minver', cfg.minver )
else:
doc.add( 'GCC.archs', '' )
doc.add( 'GCC.sysroot', '' )
doc.add( 'GCC.minver', '' )

Expand Down
8 changes: 7 additions & 1 deletion make/include/gcc.defs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ GCC.args.dylib = -dynamiclib
GCC.args.ML = -fmessage-length=0
GCC.args.H = -H
GCC.args.W = -W$(1)
GCC.args.archs = -arch $(1)
ifeq (darwin,$(BUILD.system))
GCC.args.archs = -arch $(1)
else ifeq (linux-i686,$(BUILD.system)-$(BUILD.arch))
GCC.args.archs = -msse2
else
GCC.args.archs =
endif
GCC.args.sysroot = --sysroot=$(1)
GCC.args.minver = -mmacosx-version-min=$(1)
GCC.args.vis = -fvisibility=hidden
Expand Down

0 comments on commit 6528589

Please sign in to comment.