$ cd export/dist $ find -type f -exec grep -Il . {} \; | xargs grep {project-name} | cut -f1 -d':' | uniq There are many files contains references about paths from the build host. ./usr/include/gmp.h ./usr/include/curses-64.h ./usr/bin/xmlsec1-config ./usr/bin/pltcl_listmod ./usr/bin/libtool ./usr/bin/net-snmp-config ./usr/lib64/postgresql/pgxs/src/Makefile.global ./usr/lib64/rlm_acctlog.la ./usr/lib64/rlm_fastusers.la ./usr/lib64/rlm_pap.la ./usr/lib64/rlm_acct_unique.la ./usr/lib64/rlm_expiration.la ./usr/lib64/rlm_policy.la ./usr/lib64/rlm_radutmp.la ./usr/lib64/rlm_passwd.la ./usr/lib64/rlm_eap_sim.la ./usr/lib64/rlm_detail.la ./usr/lib64/rlm_unix.la ./usr/lib64/rlm_expr.la ./usr/lib64/rlm_eap_gtc.la ./usr/lib64/rlm_wimax.la ./usr/lib64/rlm_exec.la ./usr/lib64/rlm_attr_rewrite.la ./usr/lib64/rlm_dynamic_clients.la ./usr/lib64/rlm_sql_log.la ./usr/lib64/rlm_eap_peap.la ./usr/lib64/rlm_checkval.la ./usr/lib64/libfreeradius-eap.la ./usr/lib64/rlm_mschap.la ./usr/lib64/rlm_realm.la ./usr/lib64/rlm_logintime.la ./usr/lib64/rlm_soh.la ./usr/lib64/rlm_always.la ./usr/lib64/rlm_otp.la ./usr/lib64/rlm_attr_filter.la ./usr/lib64/rlm_linelog.la ./usr/lib64/rlm_digest.la ./usr/lib64/rlm_chap.la ./usr/lib64/rlm_sqlcounter.la ./usr/lib64/rlm_sqlippool.la ./usr/lib64/rlm_sql.la ./usr/lib64/rlm_preprocess.la ./usr/lib64/rlm_pam.la ./usr/lib64/rlm_files.la ./usr/lib64/rlm_cache.la ./usr/lib64/rlm_replicate.la ./usr/lib64/libfreeradius-radius.la ./usr/lib64/rlm_eap_mschapv2.la ./usr/lib64/rlm_eap_ttls.la ./usr/lib64/rlm_eap.la ./usr/lib64/rlm_eap_tls.la ./usr/lib64/rlm_eap_leap.la ./usr/lib64/rlm_copy_packet.la ./usr/lib64/rlm_eap_md5.la