Why are there two flags to do one thing (enabling support for aac files)? It does only work anyways if you enable both of them, because 'aac' pulls in media-libs/faad2 and 'faad' enables the compilation of faad2 support in gpac.
Also on the topic of USE flags (but not related to aac/faad, so I can create a new bug if necessary): USE="js" emerge gpac doesn't pull in dev-lang/spidermonkey and without it compilation fails: [snip] gcc -shared -Wl,-O1 -Wl,--warn-common -o ../bin/gcc/libgpac.so *.o -lm -ljs -lz -lssl -lcrypto -lpthread -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ljs collect2: ld returned 1 exit status make[1]: *** [libgpac.so] Error 1 make[1]: Leaving directory `/var/tmp/portage/gpac-0.4.1_pre20060122-r1/work/gpac/src' make: *** [lib] Error 2 !!! ERROR: media-video/gpac-0.4.1_pre20060122-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile gpac-0.4.1_pre20060122-r1.ebuild, line 117: Called die !!! emake failed. !!! If you need support, post the topmost build error, and the call stack if relevant. Manually emerging spidermonkey fixes the problem. Also, should "js" be called "javascript"? There's already a USE flag called "javascript".
*** Bug 142176 has been marked as a duplicate of this bug. ***
Fixed, now uses aac USE flag everywhere.