You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
529 B

  1. {port_sources, ["c_src/*.c"]}.
  2. {so_name, "jiffy.so"}.
  3. {port_envs, [
  4. %% Link the spidermonkey library
  5. {".*", "CFLAGS", "$CFLAGS -g -Wall"},
  6. %% Make sure to link -lstdc++ on linux or solaris
  7. {"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"},
  8. %% OS X Leopard flags for 64-bit
  9. {"darwin9.*-64$", "CXXFLAGS", "-m64"},
  10. {"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
  11. %% OS X Snow Leopard flags for 32-bit
  12. {"darwin10.*-32$", "CXXFLAGS", "-m32"},
  13. {"darwin10.*-32$", "LDFLAGS", "-arch i386"}
  14. ]}.