From nobody Sun Jul 06 05:17:38 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bZbGq3hv1z61vxB for ; Sun, 06 Jul 2025 05:17:39 +0000 (UTC) (envelope-from eason@ezntek.com) Received: from outbound.pv.icloud.com (p-west1-cluster5-host1-snip4-10.eps.apple.com [57.103.66.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bZbGp66Mgz3sP8 for ; Sun, 06 Jul 2025 05:17:38 +0000 (UTC) (envelope-from eason@ezntek.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ezntek.com header.s=sig1 header.b=BttFwfPT; spf=pass (mx1.freebsd.org: domain of eason@ezntek.com designates 57.103.66.181 as permitted sender) smtp.mailfrom=eason@ezntek.com; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ezntek.com; s=sig1; bh=ZxwbXExhiXlTTmTxf2OyuCNYeBWVxc3i0nNPE4rZXso=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:x-icloud-hme; b=BttFwfPTJFc+2jcNH9jabW3y6HKUf7t0VPcAwMHFg1v/v1wUOjgtAzWGZoVaLdvo5 FqDD1/GJTmXGAcriOC+OxtE+64wq3peRpt62Had3B/ye+9fQpc6BhuxM15f7zs5q61 EZ33iqO16svnVcsMJwuW7V/a8MSmd+A4PHw4Uulod6+KuFaqVQh5cWXEgwEFj/27cE LDUcuhr5LCX0qPrBbgg853obNZRZtV4I/RRxloJm0hSoWMow1BZkKwtGclLU/owqrU sEvhpvWA8igwZ6+f0XqFACv/QP/iXjpPQhW7JV85mG25PURcrK/GapwTkv4oR6yexj viq2q9HW0hf9Q== Received: from outbound.pv.icloud.com (unknown [127.0.0.2]) by outbound.pv.icloud.com (Postfix) with ESMTPS id 0187F18001A1 for ; Sun, 6 Jul 2025 05:17:34 +0000 (UTC) Received: from [192.168.31.251] (pv-asmtp-me-k8s.p00.prod.me.com [17.56.9.36]) by outbound.pv.icloud.com (Postfix) with ESMTPSA id 7AF121800150 for ; Sun, 6 Jul 2025 05:17:33 +0000 (UTC) Message-ID: Date: Sun, 6 Jul 2025 13:17:38 +0800 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-questions@freebsd.org From: Eason Qin Subject: Default library and header search paths Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA2MDAzMSBTYWx0ZWRfX9l2SJ+gnKnnb IoOfwLaFXXWoNc1RdKqejc33N82IvEwjyunOmbyRX7zlIdwmaCC4evLTYg4qUaLlqbEBrebCKej iUKBNOyVultbeModXlC2YKuklpbgVVRhocM6PfwnYBtMLwtBCaJFdCg8u6AzArartphRPyWQkli 9KvxcAU/lc3iHQ82fJKkl7FlQIt6NJezWNNXj9jAu5g0QYogcnrHbVnZu1mpP77QYR7UzXXhuRU 5HA8jNcgK3QKTTCbILfCfBVoQJx7oSuopchJDZUoumBN5gbJXCks29qG4qCTAXM6l+cutcWZM= X-Proofpoint-GUID: cCdiofG7REF5xd7vVlb2pEw_ifAXakZT X-Proofpoint-ORIG-GUID: cCdiofG7REF5xd7vVlb2pEw_ifAXakZT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-04_07,2025-07-04_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=372 suspectscore=0 mlxscore=0 clxscore=1030 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506060001 definitions=main-2507060031 X-Spamd-Result: default: False [-1.82 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.93)[-0.932]; NEURAL_SPAM_MEDIUM(0.61)[0.612]; R_SPF_ALLOW(-0.20)[+ip4:57.103.64.0/18:c]; R_DKIM_ALLOW(-0.20)[ezntek.com:s=sig1]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:714, ipnet:57.103.64.0/22, country:US]; DMARC_NA(0.00)[ezntek.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[ezntek.com:+] X-Rspamd-Queue-Id: 4bZbGp66Mgz3sP8 X-Spamd-Bar: - Dear FreeBSD users, I have more of an ideological question. I'm a C programmer who's used FreeBSD once before, but not for programming (back in the freebsd 13.2 days); why are /usr/local/lib and /usr/local/include not in the default library and header search paths? If ports with headers and libraries are shipped with ports and theyre so ubiquitous, why must I manually specify these paths with every compilation I do involving a library? When I write on Linux, I simply have to just pass -lraylib (or such). I am aware I can mitigate this with pkg-config, but that feels slightly redundant at times (it is after all a port). Sincerely, Eason Qin