diff options
author | bradleys <[email protected]> | 2015-02-11 20:42:05 +0000 |
---|---|---|
committer | bradleys <[email protected]> | 2015-02-11 20:42:05 +0000 |
commit | 90bb32c1fc211087736ca52e267c19bf0239bdfe (patch) | |
tree | 60271db2922624b895efe087a4a5b801ad128d6b /make | |
parent | 7fdc8aad2540f0129ce17efdfa72fb7ad53b8d9f (diff) |
libhb: Fix lame and i686/mingw builds with SSE enabled.
Also fix an old typo in gcc.defs.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6895 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make')
-rw-r--r-- | make/include/gcc.defs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/make/include/gcc.defs b/make/include/gcc.defs index 93d847575..222e6e4f5 100644 --- a/make/include/gcc.defs +++ b/make/include/gcc.defs @@ -47,11 +47,7 @@ GCC.args.ML = -fmessage-length=0 GCC.args.H = -H GCC.args.W = -W$(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 = + GCC.args.archs = -arch $(1) endif GCC.args.sysroot = --sysroot=$(1) GCC.args.minver = -mmacosx-version-min=$(1) @@ -75,7 +71,11 @@ GCC.args.L = -L$(1) GCC.args.l = -l$(1) GCC.args.end = -Wl,--end-group -GCC.args.extra = $(CFLAGS) $(CPPFLAGS) +ifeq ($(BUILD.machine),$(filter $(BUILD.machine),i686 x86_64)) + GCC.args.extra = $(CFLAGS) $(CPPFLAGS) -mfpmath=sse -msse2 +else + GCC.args.extra = $(CFLAGS) $(CPPFLAGS) +endif GCC.args.extra.h_o = GCC.args.extra.c_o = GCC.args.extra.dylib = $(LDFLAGS) @@ -199,7 +199,7 @@ define import.GCC $(1).GCC.EXE = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.EXE.args),$$(1),$$(2)) # FUNCTION: C++ link dynamic-lib - $(1).GCC.DYLIB++.args = !gxx ?pipe ?strip ?dylib ?extra.dylib++ ?ML *W *arch *sysroot *minvers ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end + $(1).GCC.DYLIB++.args = !gxx ?pipe ?strip ?dylib ?extra.dylib++ ?ML *W *archs *sysroot *minvers ?vis ?pic .g .O ?extra *D *I !o ?muldefs ?start !i *F *f *L *l *i !a ?end $(1).GCC.DYLIB++ = $$(call fn.ARGS,$(1).GCC,$$($(1).GCC.DYLIB++.args),$$(1),$$(2)) # FUNCTION: C++ link executable |