Bug 701295

Summary: /usr/bin/dtrace should obey $CC
Product: [Fedora] Fedora Reporter: Dan Winship <danw>
Component: systemtapAssignee: Stan Cox <scox>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dsmith, fche, jistone, mjw, scox, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-03 19:14:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Winship 2011-05-02 13:46:29 UTC
Compiling glib currently gives warnings like:

*** Warning: Linking the shared library libglib-2.0.la against the non-libtool
*** objects  glib_probes.o is not portable!

An easy way to fix this without noticeably breaking solaris command-line compatibility would be to have dtrace use $CC instead of 'gcc' to compile the temp file. Then we could do something like:

    CC="libtool --mode=compile gcc" dtrace -s -G ...

This could also be used to fix bug 663289.

Comment 1 Stan Cox 2011-05-05 17:54:16 UTC
commit: b1568fd85e Dtrace script should honor $CPP, $CC, $CFLAGS

Comment 3 Frank Ch. Eigler 2012-02-03 19:14:06 UTC
stap 1.6 and 1.7 should have this fix.