--- a/im-freewnn.c
+++ b/im-freewnn.c
@@ -236,7 +236,7 @@
     return;
   }
 
-  jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
+  jl_set_env_wnnrc(wenv, "@GENTOO_PORTAGE_EPREFIX@/usr/lib/wnn/ja_JP/wnnenvrc", printConfirm, printError);
 
   cf->modewin = freewnn_modewin_new(cf->wnnbuf, &cf->functable);
   cf->candwin = candwin_new();