We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ef652 commit e0d251aCopy full SHA for e0d251a
scripts/build-php.ts
@@ -1560,7 +1560,8 @@ async function buildPhp(config: BuildConfig): Promise<string> {
1560
// ARM64 can use GNU libiconv without issues
1561
const iconvLibPath = uniqueLibPaths.find(p => p.includes('libiconv'))
1562
if (iconvLibPath) {
1563
- iconvFlag = ` ${iconvLibPath}/libiconv.2.dylib`
+ // Use proper -L and -l flags instead of direct dylib path to prevent runtime linking failures
1564
+ iconvFlag = ` -L${iconvLibPath} -liconv`
1565
log(`🔧 ✅ Using GNU iconv library for ARM64: ${iconvLibPath}`)
1566
}
1567
0 commit comments