[PATCH] Strip binary on OSX when not configured with --enable-debug

Поиск
Список
Период
Сортировка
От Florian G. Pflug
Тема [PATCH] Strip binary on OSX when not configured with --enable-debug
Дата
Msg-id 425E9580.8090908@phlo.org
обсуждение исходный текст
Список pgadmin-hackers
Hi

And another one ;-)
Since the autotools for some reason refuse to strip the binary (although it should
be stripped, according to "info automake"), I added a strip command to install-exec-hook.
The rename from pgadmin3 to pgAdmin3 is now in two stepts - first to tmp, then to pgAdmin3,
since some Version of OSX don't seem to like "mv a A".

greetings, Florian Pflug
Index: acinclude.m4
===================================================================
RCS file: /projects/pgadmin3/acinclude.m4,v
retrieving revision 1.44
diff -a -u -r1.44 acinclude.m4
--- acinclude.m4    12 Apr 2005 07:36:41 -0000    1.44
+++ acinclude.m4    14 Apr 2005 16:03:10 -0000
@@ -53,6 +53,7 @@
 CXXFLAGS="-Wall -g -O0"],
 [pg_debug_build=no])
 ])
+AC_SUBST(pg_debug_build)

 ############################
 # Static build of pgAdmin3 #
     then
         AC_MSG_ERROR([you need to install the ogl package from wxWindows/contrib/src/ogl with wxUSE_DEPRECATED=0])
         wx_wx_h="no"
Index: src/Makefile.am
===================================================================
RCS file: /projects/pgadmin3/src/Makefile.am,v
retrieving revision 1.103
diff -a -u -r1.103 Makefile.am
--- src/Makefile.am    12 Apr 2005 07:36:41 -0000    1.103
+++ src/Makefile.am    14 Apr 2005 16:03:11 -0000
@@ -210,6 +210,10 @@
 AM_CPPFLAGS = -Wall -g -I$(top_srcdir)/src/include -I$(top_srcdir)/src/agent/include -I$(top_srcdir)/src/slony/include
 AM_CFLAGS = -Wall -g -I$(top_srcdir)/src/include -I$(top_srcdir)/src/agent/include -I$(top_srcdir)/src/slony/include
 install-exec-hook:
-    (cd $(bindir); mv pgadmin3 "pgAdmin3")
-
+    cd $(bindir) ;\
+    mv pgadmin3 tmp ;\
+    mv tmp pgAdmin3 ;\
+    if test "$(pg_debug_build)" = "no"; then \
+        strip pgAdmin3 ;\
+    fi
 endif

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: cvs@developer.pgadmin.org
Дата:
Сообщение: CVS Commit by dpage: Updates for future wx2.6.
Следующее
От: cvs@developer.pgadmin.org
Дата:
Сообщение: CVS Commit by dpage: Since the autotools for some reason refuse to strip