Explorar o código

add declarations missing from freebsd5, prevent build from picking up java

Michael van Elst %!s(int64=22) %!d(string=hai) anos
pai
achega
113aaa700d
Modificáronse 2 ficheiros con 13 adicións e 4 borrados
  1. 9 1
      mico/mico.patch
  2. 4 3
      mico/mico.spec

+ 9 - 1
mico/mico.patch

@@ -12,12 +12,20 @@ diff -Naur mico.orig/Makefile mico/Makefile
  	for i in $(INSTALLDIRS); do $(MAKE) -C $$i install-cd || exit 1; done
 --- mico.orig/include/mico/os-math.h	2003-06-13 16:07:15.000000000 +0200
 +++ mico/include/mico/os-math.h	2003-06-13 16:07:16.000000000 +0200
-@@ -280,10 +280,7 @@
+@@ -280,10 +280,15 @@
  #include <signal.h>
  #include <sys/types.h>
  
 -#if !defined(__GNUG__) || !defined(__sgi)
 -// conflict for initstate ()
++extern "C" {
++#if defined(HAVE_ISINF)
++int isinf(double);
++#endif
++#if defined(HAVE_ISNAN)
++int isnan(double);
++#endif
++}
  #include <math.h>
 -#endif
  

+ 4 - 3
mico/mico.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
 Group:        System
 License:      LGPL/GPL
 Version:      2.3.10
-Release:      20030613
+Release:      20030627
 
 #   package options
 %option       with_ssl      no
@@ -85,7 +85,8 @@ AutoReqProv:  no
 %endif
     CPPFLAGS="%{l_cppflags}"
     LDFLAGS="%{l_ldflags}"
-    export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
+    JAVAC=no
+    export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS JAVAC
     ./configure \
         --prefix=%{l_prefix} \
 %if "%{with_ssl}" == "yes"
@@ -102,7 +103,7 @@ AutoReqProv:  no
 %endif
         --disable-mini-stl \
         --disable-shared
-    %{l_make} %{l_mflags}
+    %{l_make} %{l_mflags -O}
 
 %install
     rm -rf $RPM_BUILD_ROOT