Skip to content

CSS::Sass-3.3.3 fails to build on MacOS and Linux #22

Closed
@genehack

Description

@genehack

Looks like libsass started using C++11 extensions at some point, and the Makefile.PL isn't injecting the right flags for that. On MacOS X, I get this error:

cc -c  -I. -Ilibsass/include -fno-common -DPERL_DARWIN -mmacosx-version-min=10.11 -fno-strict-aliasing -pipe -fstack-protector-strong -I/opt/local/include -Wall -Wextra -Wno-unused-parameter -o libsass/src/ast.o -O3   -DVERSION=\"3.3.3\" -DXS_VERSION=\"3.3.3\"  "-I/opt/plenv/versions/5.24.0/lib/perl5/5.24.0/darwin-2level/CORE"  -D LIBSASS_VERSION=\"3.3.6\" libsass/src/ast.cpp
In file included from libsass/src/ast.cpp:2:
In file included from libsass/src/ast.hpp:35:
libsass/src/units.hpp:24:10: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
    IN = UnitClass::LENGTH,

Similar error on Linux, but there it wants the -std=c++11 flag added instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions