Skip to content

Commit e0d251a

Browse files
committed
chore: wip
1 parent f7ef652 commit e0d251a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build-php.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,8 @@ async function buildPhp(config: BuildConfig): Promise<string> {
15601560
// ARM64 can use GNU libiconv without issues
15611561
const iconvLibPath = uniqueLibPaths.find(p => p.includes('libiconv'))
15621562
if (iconvLibPath) {
1563-
iconvFlag = ` ${iconvLibPath}/libiconv.2.dylib`
1563+
// Use proper -L and -l flags instead of direct dylib path to prevent runtime linking failures
1564+
iconvFlag = ` -L${iconvLibPath} -liconv`
15641565
log(`🔧 ✅ Using GNU iconv library for ARM64: ${iconvLibPath}`)
15651566
}
15661567
}

0 commit comments

Comments
 (0)