Ver código fonte

- be consistent over all platforms: fixed man page installation - libpq++ now build on Solaris and FreeBSD (build environment seems to be a little different on each platform)

Christoph Schug 23 anos atrás
pai
commit
9bf6ace0f6
1 arquivos alterados com 8 adições e 1 exclusões
  1. 8 1
      postgresql/postgresql.spec

+ 8 - 1
postgresql/postgresql.spec

@@ -100,6 +100,13 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;\(#define.*DEFAULT_PGSOCKET_DIR[^"]*"\)/tmp\("\);\1%{l_prefix}/var/postgresql/run\2;' \
         src/include/pg_config.h.in
+    case "%{l_target}" in
+        *-solaris* )
+            %{l_shtool} subst \
+                -e 's;^\(sqlmansect *=\).*$;\1 7;' \
+                src/makefiles/Makefile.solaris
+            ;;
+    esac
 
 %build
     #   configure package
@@ -141,7 +148,7 @@ AutoReqProv:  no
       CFLAGS="%{l_cflags -O}"
       CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT= "
       CPPFLAGS="$CPPFLAGS -I. -I../src/interfaces -I../src/interfaces/libpq "
-      CPPFLAGS="$CPPFLAGS %{l_cppflags}"
+      CPPFLAGS="$CPPFLAGS -I../src/include %{l_cppflags}"
       LDFLAGS="%{l_ldflags}"
       OBJS="pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o"
       for o in $OBJS; do