diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile index 7300a5f56d6a..51d567f362d5 100644 --- a/lang/ruby18/Makefile +++ b/lang/ruby18/Makefile @@ -83,11 +83,6 @@ PLIST_SUB+= ONIGURUMA="" PLIST_SUB+= ONIGURUMA="@comment " .endif -.if defined(WITH_DEBUG) -CFLAGS+= -g -STRIP= # none -.endif - # # Disable doc generation if requested or docs disabled at all # diff --git a/lang/ruby19/Makefile b/lang/ruby19/Makefile index daac2f2f3621..7bcc4a293bb1 100644 --- a/lang/ruby19/Makefile +++ b/lang/ruby19/Makefile @@ -63,11 +63,6 @@ PKGNAMESUFFIX= #empty CFLAGS+= ${PTHREAD_CFLAGS} # Keep this, else ruby will fail to load LDFLAGS+= ${PTHREAD_LIBS} # libraries dependent op libpthread. -.if defined(WITH_DEBUG) -CFLAGS+= -g -STRIP= # none -.endif - # # Disable doc generation if requested or docs disabled at all # @@ -78,7 +73,8 @@ CONFIGURE_ARGS+= --disable-install-doc .endif CONFIGURE_ENV= CFLAGS="${CFLAGS}" \ - LIBS="${LDFLAGS}" + LIBS="${LDFLAGS}" \ + debugflags= .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} MLINKS= ${RUBY_NAME}.1 ruby.1