Getting rid of '-M' options when building SDL 2.0.3

Hi,

Short question:
Can I execute ./configure in some way that the compilers are invoked
without -M flags?

Larger explanation:
I’d like to build SDL with fat binaries in OSX. I see there was an script
for doing this, but it seems is no longer available (besides, I don’t know
if that script allowed to change the installation dir via --prefix, and I
need that too).

I tried to do it the way I always build fat binaries for libraries that
support configure: by specifying several ‘-arch’ flags in CFLAGS or the
relevant flags variables. It “almost” worked, but the problem is that gcc
is invoked with ‘-MMD -MT build/SDL.lo’ but -M flags cannot be used in
conjunction with multiple -arch flags, and so gcc stops showing this error.

Yes, I know getting rid of -M flags disables automatic dependencies, but I
don’t need them, because I’m not going to modify the SDL sources (in fact,
for my use I always do a ‘make distclean’ after each rebuild, so I don’t
need dependencies).

I also know there’s a painful way of building fat binaries, by combining
several archs at the end, but using several -archs in the gcc invocation is
very convenient for me…

Thanks for any advice you could give!

ardi

Why not use cmake gui ? It shows you a list of options you can change including install prefix.

Ardillas del Monte wrote:> Hi,

Short question:
Can I execute ./configure in some way that the compilers are invoked without -M flags?

Larger explanation:
I’d like to build SDL with fat binaries in OSX. I see there was an script for doing this, but it seems is no longer available (besides, I don’t know if that script allowed to change the installation dir via --prefix, and I need that too).

I tried to do it the way I always build fat binaries for libraries that support configure: by specifying several ‘-arch’ flags in CFLAGS or the relevant flags variables. It “almost” worked, but the problem is that gcc is invoked with ‘-MMD -MT build/SDL.lo’ but -M flags cannot be used in conjunction with multiple -arch flags, and so gcc stops showing this error.

Yes, I know getting rid of -M flags disables automatic dependencies, but I don’t need them, because I’m not going to modify the SDL sources (in fact, for my use I always do a ‘make distclean’ after each rebuild, so I don’t need dependencies).

I also know there’s a painful way of building fat binaries, by combining several archs at the end, but using several -archs in the gcc invocation is very convenient for me…

Thanks for any advice you could give!

ardi

I need a solution without a GUI, because I automate everything in my own
build scripts. And I’d prefer to avoid cmake. Btw, maybe the quicker way is
to modify the line(s) from the file that configure uses for
introducing the ‘-MMD
-MT build/SDL.lo’ and remove such options from there… does anybody know
where I could do this?On Wed, Jun 18, 2014 at 6:32 PM, AlexRou wrote:

Why not use cmake gui ? It shows you a list of options you can change
including install prefix.

Ardillas del Monte wrote:

Hi,

Short question:
Can I execute ./configure in some way that the compilers are invoked
without -M flags?

Larger explanation:
I’d like to build SDL with fat binaries in OSX. I see there was an script
for doing this, but it seems is no longer available (besides, I don’t know
if that script allowed to change the installation dir via --prefix, and I
need that too).

I tried to do it the way I always build fat binaries for libraries that
support configure: by specifying several ‘-arch’ flags in CFLAGS or the
relevant flags variables. It “almost” worked, but the problem is that gcc
is invoked with ‘-MMD -MT build/SDL.lo’ but -M flags cannot be used in
conjunction with multiple -arch flags, and so gcc stops showing this error.

Yes, I know getting rid of -M flags disables automatic dependencies, but I
don’t need them, because I’m not going to modify the SDL sources (in fact,
for my use I always do a ‘make distclean’ after each rebuild, so I don’t
need dependencies).

I also know there’s a painful way of building fat binaries, by combining
several archs at the end, but using several -archs in the gcc invocation is
very convenient for me…

Thanks for any advice you could give!

ardi


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Sorry, my fault, I just found ./configure has support for
’–disable-dependency-tracking’. This fixes my problem. Stupid me :-\On Wed, Jun 18, 2014 at 6:38 PM, Ardillas del Monte < @Ardillas_del_Monte> wrote:

I need a solution without a GUI, because I automate everything in my own
build scripts. And I’d prefer to avoid cmake. Btw, maybe the quicker way is
to modify the line(s) from the file that configure uses for introducing the ‘-MMD
-MT build/SDL.lo’ and remove such options from there… does anybody know
where I could do this?

On Wed, Jun 18, 2014 at 6:32 PM, AlexRou wrote:

Why not use cmake gui ? It shows you a list of options you can change
including install prefix.

Ardillas del Monte wrote:

Hi,

Short question:
Can I execute ./configure in some way that the compilers are invoked
without -M flags?

Larger explanation:
I’d like to build SDL with fat binaries in OSX. I see there was an script
for doing this, but it seems is no longer available (besides, I don’t know
if that script allowed to change the installation dir via --prefix, and I
need that too).

I tried to do it the way I always build fat binaries for libraries that
support configure: by specifying several ‘-arch’ flags in CFLAGS or the
relevant flags variables. It “almost” worked, but the problem is that gcc
is invoked with ‘-MMD -MT build/SDL.lo’ but -M flags cannot be used in
conjunction with multiple -arch flags, and so gcc stops showing this error.

Yes, I know getting rid of -M flags disables automatic dependencies, but
I don’t need them, because I’m not going to modify the SDL sources (in
fact, for my use I always do a ‘make distclean’ after each rebuild, so I
don’t need dependencies).

I also know there’s a painful way of building fat binaries, by combining
several archs at the end, but using several -archs in the gcc invocation is
very convenient for me…

Thanks for any advice you could give!

ardi


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org