OpenCV: Disable ASLR, fix build

This commit is contained in:
Gerasim Troeglazov
2020-04-18 11:31:49 +10:00
parent f0587592bb
commit fbd57af66d

View File

@@ -9,7 +9,7 @@ COPYRIGHT="2000-2016, Intel Corporation
2015-2016, OpenCV Foundation
2015-2016, Itseez Inc."
LICENSE="BSD (3-clause)"
REVISION="7"
REVISION="8"
SOURCE_URI="https://github.com/opencv/opencv/archive/$portVersion.tar.gz"
SOURCE_FILENAME="opencv-$portVersion.tar.gz"
CHECKSUM_SHA256="4eef85759d5450b183459ff216b4c0fa43e87a4f6aa92c8af649f89336f002ec"
@@ -208,7 +208,7 @@ BUILD_REQUIRES="
devel:libilmimf_2_4$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libjasper$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix >= 9
devel:libjpeg$secondaryArchSuffix
devel:liblapack$secondaryArchSuffix
devel:libopenblas$secondaryArchSuffix
devel:libopencl_headers$secondaryArchSuffix
@@ -288,6 +288,8 @@ BUILD()
-DOpenBLAS_LIB="$portPackageLinksDir/openblas${secondaryArchSuffix}_devel/develop/lib/$ARCH_SUBDIR" \
-DOPENCV_EXTRA_MODULES_PATH="$sourceDir2/opencv_contrib-$portVersion/modules"
export DISABLE_ASLR=1
make $jobArgs
}