[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patches for pkgsrc/multimedia/libdv



"Jeremy C. Reed" wrote:
> > > I notice this under Linux with Pkgsrc because I didn't have -O by default
> > > in my CFLAGS.
> 
> > No problem occur in the following environments
> > as described in libdv/README.html.
> >    i386:    libdv-0.1022(NetBSD-2.0)
> >    sparc64: libdv-0.1022(NetBSD-2.0)
> >    sparc:   libdv-0.1022(NetBSD-2.0)
> 
> I assume this is because the -O2 is on by default as done by
> /usr/share/mk/sys.mk.

yes
The default option of NetBSD-i386 is "- O2",
when there is no specification in libdv/Makefile.

> I now see that:
> 
>               If  you  use  multiple  -O options, with or without
>               level numbers, the last such option is the one that
>               is effective.
yes
"-O" appears like the following descriptions after "-O2" 
and "-O" is given to priority in all the environments,
when "CFLAGS+=-O" is added.

/bin/sh ../libtool --silent --mode=link cc  -I/usr/pkg/include/gtk-1.2 -I/usr/pk
g/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -O2 -O
-I/usr/pkg/include -I/usr/include -D_REENTRANT -Wall -g   -L/usr/pkg/lib -Wl,-R/
usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o p
laydv  playdv.o display.o oss.o  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X1
1R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -l
Xi -lXext -lX11 -lm -lXv ../libdv/libdv.la -lpopt -lm -lossaudio -lintl -lpthrea
d

However, I do not want to lower the optimization level on NetBSD-i386.

--
Osamu OISHI