Re: [sqlite] SQLITE with MINGW
Take the -g out of the compiler directives in the makefile to prevent debug code being generated. You might do well to add -O2 for optimization. Your library will be much smaller. JS jam_lraep wrote: Hi sqlite-users-help, I have compiled SQLITE with MINGW and the resultant library libsqlite3.a results very great (about 8MB), it probably contains the symbols for the debugger. How can I eliminate them? Do I have to modify the makefile? Thanks to all. Cheers Danilo. [EMAIL PROTECTED] Home Page: http://www.digitazero.org [2006-02-16] ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
Re: [sqlite] SQLITE with MINGW
jam_lraep wrote: I have only downloaded, unzipped SQLite-3.3.3.tar.gz and launched the followings commands: ./configure make && make install if there is another way to compile the library I don't know it... I am using MINGW as well I got (3.2.8) 8 Meg with -g3 -O0 450 Kb with -O0 400 kB with -O2 Dont use -g or -g3. I am not using makefile so I selected my own compiler switches. If you are using a makefile you have to modify it to remove the -g options. Max "jam_lraep" <[EMAIL PROTECTED]> on 16/02/2006 11.05.16 Please respond to sqlite-users@sqlite.org To:"sqlite-users" <sqlite-users@sqlite.org> cc: Subject: [sqlite] SQLITE with MINGW Hi sqlite-users-help, I have compiled SQLITE with MINGW and the resultant library libsqlite3.a results very great (about 8MB), it probably contains the symbols for the debugger. How can I eliminate them? Do I have to modify the makefile? Thanks to all. Cheers Danilo. ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it Danilo, The -g option tells gcc to add debug symbols to the output file. You can use the strip command to remove these debug symbols. When you build sqlite using ./configure make the makefile uses libtool to build the library in the .libs subdirectory. Before you install this library issue the following strip command to remove the debug symbols. strip -g .libs/libsqlite3.a Now when you do make install make will use libtool to install the stripped version which is only about 437K on my machine. HTH Dennis Cote
Re: [sqlite] SQLITE with MINGW
Clay Dowling ha scritto: jam_lraep said: I have only downloaded, unzipped SQLite-3.3.3.tar.gz and launched the followings commands: ./configure make && make install if there is another way to compile the library I don't know it... There's probably a slicker way to do this, but as a crude hack you can search the generated Makefile for a variable CFLAGS. Any options you put there will be used to compile the program. Somebody who understands autotools can probably show you how to do it in a more elegant way. Clay I've changed the variable CFLAGS in file "configure" removing the -g options. Now libsqlite3.a is 439KB :-)) Thanks, to all. ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
Re: Re: [sqlite] SQLITE with MINGW
jam_lraep said: > I have only downloaded, unzipped SQLite-3.3.3.tar.gz and launched the > followings commands: > ./configure > make && make install > > if there is another way to compile the library I don't know it... There's probably a slicker way to do this, but as a crude hack you can search the generated Makefile for a variable CFLAGS. Any options you put there will be used to compile the program. Somebody who understands autotools can probably show you how to do it in a more elegant way. Clay -- Simple Content Management http://www.ceamus.com
Re: Re: [sqlite] SQLITE with MINGW
I have only downloaded, unzipped SQLite-3.3.3.tar.gz and launched the followings commands: ./configure make && make install if there is another way to compile the library I don't know it... > >I am using MINGW as well > >I got (3.2.8) > > >8 Meg with -g3 -O0 > >450 Kb with -O0 > >400 kB with -O2 > >Dont use -g or -g3. > > >I am not using makefile so I selected my own compiler switches. If you are >using a makefile you have to modify it to remove the -g options. > >Max > > > > >"jam_lraep" <[EMAIL PROTECTED]> on 16/02/2006 11.05.16 > >Please respond to sqlite-users@sqlite.org > >To:"sqlite-users" <sqlite-users@sqlite.org> >cc: > >Subject:[sqlite] SQLITE with MINGW > >Hi sqlite-users-help, >I have compiled SQLITE with MINGW and the resultant library libsqlite3.a >results very great (about 8MB), it probably contains the symbols for the >debugger. How can I eliminate them? >Do I have to modify the makefile? Thanks to all. > >Cheers Danilo. ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
Re: [sqlite] SQLITE with MINGW
jam_lraep said: > Hi sqlite-users-help, > I have compiled SQLITE with MINGW and the resultant library libsqlite3.a > results very great (about 8MB), it probably contains the symbols for the > debugger. How can I eliminate them? > Do I have to modify the makefile? Thanks to all. Use the strip command. That removes a lot of fluff but keeps the functionality. Clay Dowling -- Simple Content Management http://www.ceamus.com
Re: [sqlite] SQLITE with MINGW
I am using MINGW as well I got (3.2.8) 8 Meg with -g3 -O0 450 Kb with -O0 400 kB with -O2 Dont use -g or -g3. I am not using makefile so I selected my own compiler switches. If you are using a makefile you have to modify it to remove the -g options. Max "jam_lraep" <[EMAIL PROTECTED]> on 16/02/2006 11.05.16 Please respond to sqlite-users@sqlite.org To:"sqlite-users" <sqlite-users@sqlite.org> cc: Subject: [sqlite] SQLITE with MINGW Hi sqlite-users-help, I have compiled SQLITE with MINGW and the resultant library libsqlite3.a results very great (about 8MB), it probably contains the symbols for the debugger. How can I eliminate them? Do I have to modify the makefile? Thanks to all. Cheers Danilo. [EMAIL PROTECTED] Home Page: http://www.digitazero.org [2006-02-16] ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
[sqlite] SQLITE with MINGW
Hi sqlite-users-help, I have compiled SQLITE with MINGW and the resultant library libsqlite3.a results very great (about 8MB), it probably contains the symbols for the debugger. How can I eliminate them? Do I have to modify the makefile? Thanks to all. Cheers Danilo. [EMAIL PROTECTED] Home Page: http://www.digitazero.org [2006-02-16] ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it