Skip to content

Commit

Permalink
BuildSystem: fix libmp4v2 error: Error: file number 2 already allocated
Browse files Browse the repository at this point in the history
- building libmp4v2 w/ --debug=max (-g3) exposes a gch issue.
- workaround is to disable gch.
- corrected variant/*.defs files: GCC.args.g.default -> GCC.args.g.std


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2367 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
KonaBlend committed May 2, 2009
1 parent fdee738 commit e5aaf58
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
4 changes: 3 additions & 1 deletion contrib/libmp4v2/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ LIBMP4V2.CONFIGURE.env.CXXFLAGS = CXXFLAGS="$(call fn.ARGS,LIBMP4V2.GCC,*archs *

## save some build-time by disabling utils
LIBMP4V2.CONFIGURE.extra += --disable-util
LIBMP4V2.CONFIGURE.extra += --enable-gch

## make sure gch is disabled; we get build errors on linux with gcc-4.3.x and -g3
LIBMP4V2.CONFIGURE.extra += --disable-gch
8 changes: 4 additions & 4 deletions make/variant/cygwin.defs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GCC.muldefs = 1
GCC.start = 1
GCC.end = 1

GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.default = -g2
GCC.args.g.max = -g3
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.std = -g2
GCC.args.g.max = -g3
8 changes: 4 additions & 4 deletions make/variant/freebsd.defs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TARGET.dylib.ext = .so
GCC.args.dylib = -shared
GCC.args.pic = 1

GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.default = -g2
GCC.args.g.max = -g3
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.std = -g2
GCC.args.g.max = -g3
8 changes: 4 additions & 4 deletions make/variant/linux.defs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GCC.end = 1
GCC.args.dylib = -shared
GCC.args.pic = 1

GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.default = -g2
GCC.args.g.max = -g3
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.std = -g2
GCC.args.g.max = -g3
10 changes: 5 additions & 5 deletions make/variant/mingw.defs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ TARGET.exe.suffix = .exe
GCC.start = 1
GCC.end = 1

GCC.args.dylib = -shared
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.default = -g2
GCC.args.g.max = -g3
GCC.args.dylib = -shared
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.std = -g2
GCC.args.g.max = -g3
8 changes: 4 additions & 4 deletions make/variant/solaris.defs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TARGET.dylib.ext = .so
GCC.args.dylib = -shared
GCC.args.pic = 1

GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.default = -g2
GCC.args.g.max = -g3
GCC.args.g.none = -g0
GCC.args.g.min = -g1
GCC.args.g.std = -g2
GCC.args.g.max = -g3

0 comments on commit e5aaf58

Please sign in to comment.