Enable Qphotorec compilation under cygwin

This commit is contained in:
Christophe Grenier 2013-05-22 08:07:19 +02:00
parent cdf4608c0f
commit 98d6fb5d1f
2 changed files with 9 additions and 3 deletions

View file

@ -32,7 +32,7 @@ uninstall-hook:
rm -rf $(DESTDIR)$(datadir)/doc/$(PACKAGE)-$(VERSION) rm -rf $(DESTDIR)$(datadir)/doc/$(PACKAGE)-$(VERSION)
static: static:
rm -f src/testdisk src/testdisk.exe src/photorec src/photorec.exe src/fidentify src/fidentify.exe rm -f src/testdisk src/testdisk.exe src/photorec src/photorec.exe src/fidentify src/fidentify.exe src/qphotorec src/qphotorec.exe
$(MAKE) LDFLAGS="$(LDFLAGS) -static" LIBS="$(PTHREAD_LIBS) $(LIBS)" CFLAGS="$(PTHREAD_CFLAGS) $(CFLAGS)" CXXFLAGS="$(PTHREAD_CFLAGS) $(CXXFLAGS)" $(MAKE) LDFLAGS="$(LDFLAGS) -static" LIBS="$(PTHREAD_LIBS) $(LIBS)" CFLAGS="$(PTHREAD_CFLAGS) $(CFLAGS)" CXXFLAGS="$(PTHREAD_CFLAGS) $(CXXFLAGS)"
smallstatic: smallstatic:

View file

@ -38,7 +38,13 @@ case "$crosscompile_target" in
VER_NTFSPROGS="2.0.0" VER_NTFSPROGS="2.0.0"
VER_E2FSPROGS=1.41.8 VER_E2FSPROGS=1.41.8
;; ;;
*-cygwin|*-mingw32) *-cygwin)
VER_LIBNTFS3G=
VER_NTFSPROGS="2.0.0"
VER_E2FSPROGS=1.42.2
export PKG_CONFIG_SYSROOT_DIR=/usr/i386-pc-cygwin/
;;
*-mingw32)
VER_LIBNTFS3G= VER_LIBNTFS3G=
VER_NTFSPROGS="2.0.0" VER_NTFSPROGS="2.0.0"
VER_E2FSPROGS=1.42.2 VER_E2FSPROGS=1.42.2
@ -314,7 +320,7 @@ then
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf --without-iconv $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf --without-iconv
;; ;;
i386-pc-cygwin) i386-pc-cygwin)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --enable-qt
;; ;;
i386-mingw32) i386-mingw32)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-iconv --enable-missing-uuid-ok $confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-iconv --enable-missing-uuid-ok