diff options
Diffstat (limited to 'devel/android-tools-fastboot')
-rw-r--r-- | devel/android-tools-fastboot/files/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/android-tools-fastboot/files/Makefile b/devel/android-tools-fastboot/files/Makefile index fc74fe740f86..b2830f1471b4 100644 --- a/devel/android-tools-fastboot/files/Makefile +++ b/devel/android-tools-fastboot/files/Makefile @@ -36,6 +36,7 @@ SRCS+= init.c SRCS+= label.c SRCS+= label_android_property.c SRCS+= label_file.c +CFLAGS.init.c+= -DDARWIN # statfs .PATH: ${.CURDIR}/../libsparse SRCS+= backed_block.c @@ -48,10 +49,13 @@ SRCS+= sparse_read.c .PATH: ${.CURDIR}/../libzipfile SRCS+= centraldir.c SRCS+= zipfile.c +CFLAGS.centraldir.c+= -Ulseek64 # utils/Compat.h CFLAGS+=-D_FILE_OFFSET_BITS=64 # utils/Compat.h -CFLAGS+=-D__APPLE__ -D__MACH__ # off64_t -CFLAGS+=-DDARWIN # statfs +CFLAGS+=-Doff64_t=off_t +CFLAGS+=-Dftruncate64=ftruncate +CFLAGS+=-Dlseek64=lseek +CFLAGS+=-Dmmap64=mmap CFLAGS+=-I${.CURDIR} CFLAGS+=-I${.CURDIR}/../include CFLAGS+=-I${.CURDIR}/../mkbootimg @@ -59,6 +63,7 @@ CFLAGS+=-I${.CURDIR}/../ext4_utils CFLAGS+=-I${.CURDIR}/../f2fs_utils CFLAGS+=-I${.CURDIR}/../libselinux/include CFLAGS+=-I${.CURDIR}/../libsparse/include +CFLAGS+=${CFLAGS.${.IMPSRC:T}} LDADD+= -lpcre -lusb -lz DPADD+= ${LIBPCRE} ${LIBUSB} ${LIBZ} |