Timeline for Building a custom development environment
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 17, 2015 at 17:19 | vote | accept | PCaetano | ||
| Nov 17, 2015 at 17:18 | comment | added | PCaetano |
After setting up a Debian VM and installing the GCC -dev and dbg packages, I could confirm it includes both versions of libstdc++ (optimized and non-optimized). I'll try this on Debian, then.
|
|
| Nov 17, 2015 at 11:04 | comment | added | cas | you can always rebuild the lib, -dev, -dbg packages with whatever compile-time options you choose. as a general rule, it is almost always better to rebuild a package than to compile something into /usr/local or your home dir. | |
| Nov 17, 2015 at 10:57 | comment | added | PCaetano |
@cas Usually those packages (-dev, -dbg) are relative to the lib package, which is an optimized build. The rules file for the zlib1g .deb includes this: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O3, which means it builds either one or the other. However, looking at the .deb binary package for GCC, there is a debug directory, with a libstdc++.so. I'll set up a Debian VM and take a better look at this. If it does include the non-optimized build, I can experiment on Debian, as it means I won't need to build GCC from source.
|
|
| Nov 16, 2015 at 20:29 | comment | added | cas |
Most, if not all, lib packages in Debian come as both -dev and -dbg versions. e.g. package zlib1g (runtime shared libs) has zlib1g-dev (dev files) and zlib1g-dbg (dev files, with debugging symbols). libstdc++ and various qt libs and boost and many others i (very briefly) checked all come with -dbg debugging versions of the packages. all up, in debian sid, there are 2801 packages with -dbg versions (compared to 5734 -dev packages)
|
|
| Nov 16, 2015 at 12:54 | history | edited | PCaetano | CC BY-SA 3.0 |
Edit to address cas's answer
|
| Nov 15, 2015 at 22:38 | answer | added | cas | timeline score: 2 | |
| Nov 15, 2015 at 17:30 | review | First posts | |||
| Nov 15, 2015 at 17:39 | |||||
| Nov 15, 2015 at 17:24 | history | asked | PCaetano | CC BY-SA 3.0 |