This is the patch. It adds LD flag options for each executable.
---------- Forwarded message ----------
From: John Darrington <[EMAIL PROTECTED]>
Date: Tue, 21 Oct 2008 10:20:41 +0800
Subject: Re: Annoying DOS box launching psppire
To: Michel Boaventura <[EMAIL PROTECTED]>
Cc: [email protected]
Try this patch then.
You should be able to do
./configure PSPPIRE_LDFLAGS="\"-Wl,-subsystem windows\""
If it works, then I'll check it into the stable branch.
J'
On Mon, Oct 20, 2008 at 10:35:46PM -0300, Michel Boaventura wrote:
Good idea. With this I guess this is solved.
On 10/20/08, John Darrington <[EMAIL PROTECTED]> wrote:
> I suggest that the easiest solution would be for us to create a
> couple of variables PSPP_LDFLAGS and PSPPIRE_LDFLAGS for the
> convenience of people who need to pass special linker flags to one
> binary but not the other.
>
> Would that help?
>
> On Mon, Oct 20, 2008 at 10:03:30PM -0300, Michel Boaventura wrote:
> This works. Now psppire opens without the annoying DOS box. But
> setting those flags on CFLAGS make also pspp to be compiled with it,
> so it stop works, because it needs to open on a DOS box. If those
> flags don't broke anything on linux, maybe we can put it
on makefile,
> so only psppire uses it.
>
> 2008/10/17 Ben Pfaff <[EMAIL PROTECTED]>:
> > "Michel Boaventura" <[EMAIL PROTECTED]> writes:
> >
> >> Searching on mingw FAQ I've found that to remove the annoying DOS
> box
> >> who opens before psppire we need to compile it with the flag:
> >> "-Wl,-subsystem,windows".
> >> Where's a good place to put it on makefile?
> >
> > You can specify it on the configure command line:
> > ./configure LDFLAGS="-Wl,-subsystem,windows"
>
> --
> PGP Public key ID: 1024D/2DE827B3
> fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
> See http://pgp.mit.edu or any PGP keyserver for public key.
>
>
>
--
Sent from Gmail for mobile | mobile.google.com
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
--
Sent from Gmail for mobile | mobile.google.com
diff --git a/configure.ac b/configure.ac
index f32434d..3284ec8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,10 @@ PSPP_LC_PAPER
AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no")
+AC_ARG_VAR([PSPP_LDFLAGS], [linker flags to be used for linking the pspp binary only])
+AC_ARG_VAR([PSPPIRE_LDFLAGS], [linker flags to be used for linking the psppire binary only])
+
+
AC_ARG_WITH(
gui,
[AS_HELP_STRING([--without-gui], [don't build the PSPPIRE gui])])
diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk
index 64fe75e..8dabffb 100644
--- a/src/ui/gui/automake.mk
+++ b/src/ui/gui/automake.mk
@@ -7,6 +7,7 @@ src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GLADE_CFLAGS) -Wall \
src_ui_gui_psppire_LDFLAGS = \
+ $(PSPPIRE_LDFLAGS) \
$(PG_LDFLAGS)
diff --git a/src/ui/terminal/automake.mk b/src/ui/terminal/automake.mk
index 928716c..80c6599 100644
--- a/src/ui/terminal/automake.mk
+++ b/src/ui/terminal/automake.mk
@@ -40,7 +40,7 @@ src_ui_terminal_pspp_LDADD = \
-src_ui_terminal_pspp_LDFLAGS = $(PG_LDFLAGS)
+src_ui_terminal_pspp_LDFLAGS = $(PSPP_LDFLAGS) $(PG_LDFLAGS)
if RELOCATABLE_VIA_LD
src_ui_terminal_pspp_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFI/Tx5imdxnC3oJ7MRAp+pAJ43Jo03332RY8iGjq+fT7UkzuciswCfT2yX
+3eChMrL/wOB3fRLVGpAHDY=
=Qd6D
-----END PGP SIGNATURE-----
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev