New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When compiling shared libraries, make a distinction between C and C++ #1260

Closed
FooBarWidget opened this Issue Aug 11, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@FooBarWidget
Member

FooBarWidget commented Aug 11, 2014

Currently we autodetect shared library flags like this (build/cplusplus_support.rb):

if PhusionPassenger::PlatformInfo.cc_is_sun_studio?
    fPIC = "-KPIC"
else
    fPIC = "-fPIC"
end

But then we proceed to compile with a C++ compiler. cc might be Sun Studio, but c++ might not be.

See https://groups.google.com/d/msg/phusion-passenger/rj_H-ZC0TvE/ar6WbdEkLyYJ

@FooBarWidget FooBarWidget added this to the 4.0.49 milestone Aug 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment