![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to build a string in shell script | nkosaraju | Shell Programming and Scripting | 8 | 07-17-2008 12:29 PM |
| Build script for all shells | vino | Shell Programming and Scripting | 9 | 04-14-2005 12:25 AM |
| I want to build a script | mewalter | Shell Programming and Scripting | 7 | 10-14-2002 01:27 AM |
| Script Build | mewalter | Shell Programming and Scripting | 3 | 07-09-2002 05:30 PM |
| I want to build a script | mewalter | Shell Programming and Scripting | 2 | 07-01-2002 06:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
autoresolving 'native' in build script
Greets. I have a build system that comprises of one parent script and about 150 children to build Gnome. I have a file that is sourced at the top of every script to gather variables needed for the build. In this variables file, CFLAGS are set.
What I would like to do is do a quick check somewhere for the use of -march=native. If found, I'd like to translate native into a static CPU opt to use for the package name ($ARCH). This is on Slackware BTW. Having a package named "foo-1.2.3-native-1.tgz" doesn't really tell you what $ARCH the package is for..... Haven't thought of how I'm going to actually implement this yet so all build scripts have it available, but right now, I had a quick C file compilation in mind, supplying gcc with the verbose flag and then grep for the $ARCH? Eh..... I don't know. Sounds a little sloppy maybe. Especially if I had to do that for each child. Anyone have any cool idea's for this? Thanks all. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|