Some configure scripts (namely those of Java, ODBC, Mysql, Postgres, and Oracle) add "-L$some_lib_dir -R$some_lib_dir" to LDFLAGS (and LINKER_OPTIONS). But -R is not a recognized gcc option. Should that be "-Wl,-R$some_lib_dir" (i.e. -Wl,-rpath,$some_lib_dir) instead?