You are not logged in.

#1 2008-06-23 19:20:33

shaurz
Member
Registered: 2004-02-02
Posts: 358

Suppress automatic strip

Is it possible to disable automatic stripping in makepkg? Unfortunately strip breaks the executable.

Offline

#2 2008-06-23 19:22:54

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Suppress automatic strip

That's definitely possible.  From man PKGBUILD:

       options (array)
           This array allows you to override some of makepkg´s default
           behavior when building packages. To set an option, just include the
           option name in the options array. To reverse the default behavior,
           place an "!" at the front of the option. Only specify the options
           you specifically want to override, the rest will be taken from
           makepkg.conf(5).  NOTE: force is a special option only used in a
           PKGBUILD(5), do not use it unless you know what you are doing.

           strip
               Strip symbols from binaries and libraries. If you frequently
               use a debugger on programs or libraries, it may be helpful to
               disable this option.

Offline

#3 2008-06-23 19:23:49

drag0nl0rd
Package Maintainer (PM)
From: Czech Republic
Registered: 2007-10-24
Posts: 127
Website

Re: Suppress automatic strip

/etc/makepkg.conf
...
#########################################################################
#
# Default: OPTIONS=(strip !docs libtool emptydirs)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries
#-- docs:      Save doc and info directories
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#
OPTIONS=(strip !docs libtool emptydirs)
...

change to OPTIONS=(!strip !docs libtool emptydirs)

Offline

#4 2008-06-23 20:00:20

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: Suppress automatic strip

Thanks, I didn't know about that man page. I couldn't find the answer on the wiki.

Offline

Board footer

Powered by FluxBB