<snip> make: Entering directory `/var/tmp/portage/media-libs/openjpeg-1.3/work/OpenJPEG_v1_3/codec' gcc -O3 -lstdc++ compat/getopt.c index.c convert.c j2k_to_image.c -o j2k_to_image -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff gcc -O3 -lstdc++ compat/getopt.c index.c convert.c image_to_j2k.c -o image_to_j2k -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff </snip> The problem w/ CFLAGS is quite visible here [1], should be CFLAGS += ... instead, plus the -O3 thing needs to go away. Also, calling gcc directly like this breaks crosscompile. [1] http://bugs.gentoo.org/attachment.cgi?id=144837&action=view
Also, compiling in src_install is a no-no. ;P
Created attachment 145029 [details, diff] openjpeg-1.3-codec-Makefile.patch Fixed patch...
Created attachment 145030 [details, diff] openjpeg-1.3.ebuild.diff - do not compile stuff in src_install - no need to build the tools w/ -fPIC - also add missing media-libs/tiff dependency and make the tools install optional since not everyone wants tiff ;)
Created attachment 145032 [details, diff] openjpeg-1.3.ebuild.diff Bleh, attached wrong patch for ebuild.
Created attachment 145033 [details, diff] openjpeg-1.3.ebuild.diff Ayeeeee, we need inherit eutils which shows now that I nuked flag-o-matic inherit.
Fixed thanks