/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--as-needed-L/usr/lib64/mysql' The cause of this is the following sed in the ebuild: sed \ -i -e "s;-Wl,-O1;;" \ -i -e "s| -rdynamic ||" \ GDALmake.opt || die "sed LIBS failed" It deletes one space too many: -MYSQL_LIB = -Wl,--as-needed -rdynamic -L/usr/lib64/mysql -lmysqlclient ... +MYSQL_LIB = -Wl,--as-needed-L/usr/lib64/mysql -lmysqlclient ... It should be changed to replace the " -rdynamic " with a single space.
With the substitution changed to "s| -rdynamic | |" gdal emerged fine for me.
Same problem with sci-libs/gdal-1.7.1-r1[mysql].
Ping? It shouldn't take so long to add a single space to an ebuild.
Added to cvs