patch sdk for libtool
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 18 Mar 2018 00:07:06 +0000 (02:07 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 18 Mar 2018 00:07:12 +0000 (02:07 +0200)
libtool.patch [new file with mode: 0644]
megacmd.spec

diff --git a/libtool.patch b/libtool.patch
new file mode 100644 (file)
index 0000000..7174155
--- /dev/null
@@ -0,0 +1,45 @@
+--- MEGAcmd-0.9.8/sdk/configure.ac~    2018-03-17 22:07:36.000000000 +0200
++++ MEGAcmd-0.9.8/sdk/configure.ac     2018-03-17 22:08:09.737558496 +0200
+@@ -154,7 +154,8 @@
+ WIN32=no
+ DARWIN=no
+ ANDROID=no
+-AC_MSG_CHECKING([if building for Win32 platform])
++LINUX=no
++AC_MSG_CHECKING([platform options])
+ case $host in
+   *-*-cygwin*)
+     LIBS_EXTRA="-luser32 -lkernel32"
+@@ -201,7 +201,10 @@
+     ;;
+   *-android*)
+     ANDROID=yes
+-    ;;    
++    ;;
++  *-linux*)
++    LINUX=yes
++    ;;
+   *)
+     LIBS_EXTRA=""
+     ;;
+@@ -210,6 +213,7 @@
+ AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
+ AM_CONDITIONAL([DARWIN], [test "${DARWIN}" = "yes"])
+ AM_CONDITIONAL([ANDROID], [test "${ANDROID}" = "yes"])
++AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
+ AC_SUBST(LIBS_EXTRA)
+--- MEGAcmd-0.9.8/sdk/Makefile.am~     2018-03-17 21:18:50.000000000 +0200
++++ MEGAcmd-0.9.8/sdk/Makefile.am      2018-03-17 21:18:53.815527745 +0200
+@@ -42,6 +42,10 @@
+ AM_LIBTOOLFLAGS="--tag=CXX"
+ endif
++if LINUX
++AM_LIBTOOLFLAGS="--tag=CXX"
++endif
++
+ VERSION_INFO=$(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+ CLEANFILES=
index e53c138..1979f55 100644 (file)
@@ -6,6 +6,7 @@ License:        Freeware
 Group:         Applications
 Source0:       https://github.com/meganz/MEGAcmd/archive/%{version}/%{name}-%{version}.tar.gz
 Source1:       https://github.com/meganz/sdk/archive/5d211ac6/mega-sdk-v3.2.8-209-g5d211ac6.tar.gz
+Patch0:                libtool.patch
 URL:           https://mega.nz/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
This page took 0.061537 seconds and 4 git commands to generate.