diff --git a/scripts/macosx-build-dependencies.sh b/scripts/macosx-build-dependencies.sh index ab554e5cb8..2fb092d34d 100755 --- a/scripts/macosx-build-dependencies.sh +++ b/scripts/macosx-build-dependencies.sh @@ -699,12 +699,11 @@ build_gettext() # If we're building for multiple archs, create fat binaries if (( ${#ARCHS[@]} > 1 )); then - cd $DEPLOYDIR LIBS=() for arch in ${ARCHS[*]}; do LIBS+=(build-$arch/install/$DEPLOYDIR/lib/libintl.a) done - lipo -create ${LIBS[@]} -output lib/libintl.a + lipo -create ${LIBS[@]} -output $DEPLOYDIR/lib/libintl.a fi echo $version > $DEPLOYDIR/share/macosx-build-dependencies/gettext.version