Skip to content

Compilation of openssl feedstock with -O2 and not -O3 #216

@blunderbussatya

Description

@blunderbussatya

Comment:

I'd a look into the feedstock (for linux-x86_64) it seems the dependency on gcc_linux-64 brings an activation script with itself which sets CXXFLAGS/CFLAGS env vars to have a -O2 compilation flag along with some others which leads to compilation of openssl with -O2 instead of -O3. is this intended?

Log line from the build logs of conda-forge job

$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-cc -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/openssl_split-3.6.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -Wa,--noexecstack -I. -Iinclude -Iapps/include -fPIC -pthread -m64 -Wa,--noexecstack -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/openssl_split-3.6.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"$PREFIX/ssl\"" -DENGINESDIR="\"$PREFIX/lib/engines-3\"" -DMODULESDIR="\"$PREFIX/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include -MMD -MF apps/lib/libapps-lib-app_provider.d.tmp -c -o apps/lib/libapps-lib-app_provider.o apps/lib/app_provider.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions