mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
pjproject_bundled: Fixed various build issues
* CFLAGS is now properly set when using older gcc. * All third-party pjproject targets have been removed. This fixes an issue with older libsrtp in some distros. * Manually removing the source directory now causes a rebuild. * EXTERNALS_CACHE_DIR is now properly checked. * Whitespace fixes. Change-Id: I98fec6847efc5602a9f41cb95096fd660a49fa60
This commit is contained in:
8
third-party/pjproject/apply_patches
vendored
8
third-party/pjproject/apply_patches
vendored
@@ -28,8 +28,14 @@ if [ ! "$(ls -A $patchdir/*.patch 2>/dev/null)" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if patch --dry-run </dev/null >/dev/null 2>&1 ; then
|
||||
DRY_RUN=--dry-run
|
||||
else
|
||||
DRY_RUN=-C
|
||||
fi
|
||||
|
||||
for patchfile in $patchdir/*.patch ; do
|
||||
${PATCH} -d $sourcedir -p1 -s -r- -f -N --dry-run -i "$patchfile" || (echo "Patchfile $(basename $patchfile) failed to apply" >&2 ; exit 1) || exit 1
|
||||
${PATCH} -d $sourcedir -p1 -s -r- -f -N $DRY_RUN -i "$patchfile" || (echo "Patchfile $(basename $patchfile) failed to apply" >&2 ; exit 1) || exit 1
|
||||
done
|
||||
|
||||
for patchfile in "$patchdir"/*.patch ; do
|
||||
|
||||
Reference in New Issue
Block a user